Answers for "vhost in localmachin for window"

0

vhost in localmachin for window

# Stop the server

# open C:\xampp\apache\conf\extra and edit httpd-vhosts.conf 

uncomment the NameVirtualHost *:80 and Add

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/[project Folder]/[Project code]"
    ServerName [ Server.Name ]
    ErrorLog "logs/sassiLocal.com-error.log"
    CustomLog "logs/sassiLocal.com-access.log" common
</VirtualHost>

# Now Open C:\Windows\System32\drivers\etc, Open Hosts File and Edit New Line

127.0.0.1 [ Server.Name ]

now Server.Name/ in browser URL
Posted by: Guest on July-06-2021

Code answers related to "vhost in localmachin for window"

Browse Popular Code Answers by Language