php - Configuring localhost and virtalhost redirecting in dashboard with lampp -


i'm attempting configure virtualhost subdirectory /opt/lampp/htdocs. httpd-vhost.conf file:

namevirtualhost *:80 <virtualhost localhost:80> serveradmin localhost documentroot /opt/lampp/htdocs servername localhost <directory  /opt/lampp/htdocs>           options     allowoverride     allow </directory> </virtualhost>   <virtualhost *:80> # first-listed virtual host default *:80 servername www.localhostwmf.com serveralias localhostwmf.com documentroot /opt/lampp/htdocs/wmf directoryindex index.php <directory  /opt/lampp/htdocs/wmf>      options     allowoverride     allow </directory> </virtualhost> 

i uncommented line in httpd.conf:

include etc/extra/httpd-vhosts.conf 

and added following line in etc/hosts:

127.0.0.1   www.localhostwmf.com 

but redirects me in dashboard page of xampp! thank in advance answers!

i solved morning problem, hope solution useful one:

i modified httpd-vhosts.conf file follows:

namevirtualhost *:80  <virtualhost localhost:80> serveradmin localhost documentroot /opt/lampp/htdocs/wmf servername localhost <directory  /opt/lampp/htdocs>           options     allowoverride     allow </directory> </virtualhost>   <virtualhost *:80> # first-listed virtual host default *:80 servername www.localhostwmf.com serveralias localhostwmf.com documentroot /opt/lampp/htdocs/wmf directoryindex index.php <directory  /opt/lampp/htdocs/wmf>      options     allowoverride     allow </directory> </virtualhost> 

(i added wmf folder in localhost document root)


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -