Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to set domain name on localhost linux ubuntu xampp

>>> cutshort of the youtube video
we need to edit three files 
1) /opt/lampp/etc/httpd.conf
-> in this file search httpd-vhosts.conf
and uncomment it 
like this
(
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
)






2) then goto /opt/lampp/etc/extra/httpd-vhosts.conf
and add these following lines
<VirtualHost *:80>
    DocumentRoot "/opt/lampp/htdocs/projectFolderName"
    ServerName projectDomainName
		<Directory "/opt/lampp/htdocs/projectFolderName">
			Require all granted
		</Directory>
</VirtualHost>

(
replace projectFolderName with your project folder name 
and projectDomainName with the domain name you want to have

)

3) goto /etc/hosts
add this line
127.0.0.1 projectDomainName

don't forget to open all these files with sudo and save them , 
restart the xampp and that's it ! enjoy
Comment

how to use custom domain name instead of localhost on xampp for linux

here is the youtube link for you 

add custom domain name instead of localhost/yourprojectname/ 
click on the link below 
https://www.youtube.com/watch?v=2UbpmSNr48c
Comment

PREVIOUS NEXT
Code Example
Html :: css keep hyphenated words together 
Html :: how to center align text in html 
Html :: html font size 
Html :: filter in v-html 
Html :: show timestamp as yyyy mm dd html angular 
Html :: how to make bootstrap cards centered 
Html :: html image tag 
Html :: tailwind css radio 
Html :: prevent the child event from triggering the parent element angular 5 
Html :: type phone number html 
Html :: coc allow comments in json 
Html :: if else if vue 
Html :: bootstrap 3 button 
Html :: background music html autoplay hidden 
Html :: ionic deactivate fab button 
Html :: bootstrap 4 selectpicker 
Html :: nuxt select option v-for 
Html :: predefine data list in input tag 
Html :: random image 
Html :: html checkbox 
Html :: disabled any key in JS 
Html :: express send html file 
Html :: html shopping cart icon 
Html :: how to add a link to an image in html 
Html :: Html.ActionLink with parameters 
Html :: floating button html 
Html :: html times 
Html :: django template comments 
Html :: what is the html code of changing color 
Html :: html.textboxfor add default value 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =