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 :: html link to new tab 
Html :: excel timestamp to date 
Html :: bootstrap hyperlink 
Html :: How to set background color without body tag html 
Html :: vuetify v-text-field bottom padding 
Html :: disable autocomplete 
Html :: component in ejs 
Html :: select empty option 
Html :: pyscript python 
Html :: input tag with data list 
Html :: onclick function link to another html page 
Html :: Disable right click on your webpage 
Html :: ionic fab 
Html :: ml-auto bootstrap 5 not working 
Html :: html delay 
Html :: call year in html 
Html :: new line html 
Html :: html code example 
Html :: html tel link 
Html :: how to create accordion effect using built-in HTML tags? 
Html :: time element html 
Html :: html simbols 
Html :: html scroll div to top 
Html :: how to add script in html head 
Html :: bootstrap display block 
Html :: bootstrap.. 
Html :: path width svg change 
Html :: html color code for green 
Html :: on this image error 
Html :: Basic Boilerplate 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =