This is the part of my httpd.conf which includes the virtual hosts config:
- Code: Select all
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
httpd-vhosts.conf, without comments:
- Code: Select all
<VirtualHost *:80>
ServerAdmin me@gmail.com
DocumentRoot "/opt/lampp/htdocs/mysite"
ServerName mysite.dev
ServerAlias www.mysite.dev
ErrorLog "logs/mysite.dev-error_log"
CustomLog "logs/mysite.dev-access_log" common
</VirtualHost>
And the /etc/hosts file:
- Code: Select all
127.0.0.1 localhost
127.0.1.1 my-pc
#XAMPP
127.0.0.1 mysite.dev www.mysite.dev
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I already managed to deactivate the redirection to the dashboard, and now when I try to enter mysite.dev or http://www.mysite.dev, the document root files are indexed. It doesn't matter to me if they're indexed here, what I want is to serve from /opt/lampp/htdocs/mysite
I can reach this directory if i instead enter http://localhost/mysite, but this is not what I want. Plus I restarted Apache everytime I made any change.
Any help?