php - Vritual host in windows 8 apache xampp -
i trying config virtual host in windows 8 ,i installed apache in port 8080 below config files far tried,still getting 404 error
httpd-vhost conf
<virtualhost *:8080> servername design.com serveralias www.design.com documentroot "c:/xampp/htdocs/proj_des/public/" <directory c:/xampp/htdocs/proj_des> allowoverride require granted </directory> </virtualhost> <virtualhost *:8080> documentroot "c:/xampp/htdocs" servername localhost </virtualhost>
httpd.conf
listen 8080
host in system32
127.0.0.1 localhost 127.0.0.1 www.design.com
your server spawned on port 8080
, , therefore available access on port 8080
. default, if don't specify port, browser try connect on port 80
, http port. why don't response when go localhost
, not localhost:8080
to change port server listening on, replace 8080
80
anywhere code specifies port listen on:
httpd-vhost.conf
<virtualhost *:80> servername design.com serveralias www.design.com documentroot "c:/xampp/htdocs/proj_des/public/" <directory c:/xampp/htdocs/proj_des> allowoverride require granted </directory> </virtualhost> <virtualhost *:80> documentroot "c:/xampp/htdocs" servername localhost </virtualhost>
httpd.conf
listen 80
Comments
Post a Comment