httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cequiel <>
Subject accessing virtual host from other computer in the same network
Date Sat, 24 Mar 2012 13:50:03 GMT

Hi Everyone.
I'm not sure if this is a bug. In any case, here is my problem. I have an
Ubuntu 11.10 machine and an Apache server running on it. Also, I have a
virtual host registered on my Apache server. I have no problem accessing to
my virtual host from my local machine. I just open the following url
http://mysubdomain.localhost and works perfectly.

The problem is that I want to access to my virtualhost from another computer
connected at the same router. The IP of my ubuntu machine is
(for example) and the Windows computer is (for another
example). In the windows computer I added a new entry at the end of the
"hosts" file to override the previous url:  http://mysubdomain.localhost

So when I try to open http://mysubdomain.localhost from my Windows machine,
it tries to connect to the Ubuntu Apache server.

The problem is that when I open http://mysubdomain.localhost from my Windows
machine, the browser shows the default page, instead of the mysubdomain
page. And I don't know why this is happening.

Here's the configurations files located at /etc/apache2/sites-available:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from ::1/128


<VirtualHost mysubdomain.localhost:80>
        ServerName mysubdomain.localhost
        DocumentRoot /home/gonzalo/Projects/mysubdomain/htdocs
        ErrorLog /home/gonzalo/Projects/mysubdomain/logs/error.log
        CustomLog /home/gonzalo/Projects/mysubdomain/logs/access.log
        <Directory /home/gonzalo/Projects/mysubdomain/htdocs/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All

Thank you very much and sorry my English. Greetings from Spain :)
View this message in context:
Sent from the Apache HTTP Server - Bugs mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message