lmartin - 2015-03-14

Hi. I'm new to webmin, and my knowledge on setting up a web server is quite limited. So I'm starting with just a simple local web server.
I've been trying to configure a virtual host, following a few tutorials on how to do it, both by webmin and manually editing the config files, and I still haven't succeed. Resolving host is the farthest I've been. However it perfectly works if I use localhost. So it doesn't seem to be a problem with Apache.

I'm using Linux Mint. So this is what I have configured so far:

/etc/apache2/sites-available/mysite.local.conf:

<VirtualHost *:80>
        ServerAdmin admin@example.com
    DocumentRoot "/var/www/mysite.com/public_html"
    ServerName mysite.local
    ServerAlias www.mysite.local
    ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

/var/www/mysite.com/public_html does exist of course. Maybe I should be forced to name it mysite.local instead of mysite.com??

This virtual host is being listed and is configurable from Webmin. This tells me it is reachable from the main conf file /etc/apache2/apache2.conf, and it's linked from sites-enabled.

I also did all the permission changes recommended for the server directories.

This is my /etc/hosts:

127.0.0.1       localhost
127.0.1.1       my-notebook
127.0.0.1       mysite.local

What else am I missing??

 

Last edit: lmartin 2015-03-14