Accessing Virtual Host Name (xampp) on network returns 404 error

时间:2015-06-26 09:39:19

标签: apache xampp virtualhost

I want to access virtual host on network with other devices. I set the Apache's Virtual Host using xampp like this:

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "D:/xampp/htdocs/site_mobile"
    ServerName site.mobile
    <Directory "D:/xampp/htdocs/site_mobile">
    Options Indexes FollowSymLinks Includes ExecCGI    
    AllowOverride All
    Order Allow,Deny
    Allow from all
    </Directory>
</VirtualHost>

And this is how I access the Servername in network:

192.168.1.102/site.mobile/

Unfortunately, I get an error considering

Object not found! The Requested URL was not found on this server...

Accessing the path and not the ServerName works fine on my own device and on the network:

localhost/site_mobile/
192.168.1.102/site_mobile/

I have to mention that accessing only site.mobile on my own device works fine

0 个答案:

没有答案