I'm currently trying to configure the virtual host (Subdomain) of my Apache HTTP server so that it can be accessed from another computer on the local network. The current Apache setup with PHP and MySQL runs locally on the same physical machine.
So, I have two Virtual Host installations (development and cms) running on a non-standard port 50080. The server machine has IP 10.0.0.10. On the same physical machine, I can access two virtual hosts using:
development.localhost:50080 cms.localhost:50080
On another physical machine, I can access the server root using:
10.0.0.10:50080
But I can not or do not know how to access the virtual host from another machine. I tried something like:
development.10.0.0.10:50080 cms.10.0.0.10:50080
But they do not seem to work.
This is what my httpd-vhosts file looks like:
NameVirtualHost *:50080 <VirtualHost *:50080> DocumentRoot "C:/www/HTTP" ServerName localhost </VirtualHost> <VirtualHost *:50080> ServerAdmin administrator@development.localhost DocumentRoot "C:/www/HTTP/development" ServerName development.localhost ErrorLog "logs/development.localhost-error.log" CustomLog "logs/development.localhost-access.log" common </VirtualHost>
I read some other posts here and the Apache forum, but there is no specific case for this.
I was wondering how I can access the virtual host (subdomain) from another computer and maintain the same port, if possible.
Thanks in advance
apache virtualhost
YTKColumba
source share