Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Local availability VirtualHosts with dd-wrt and DNSMasq

0

67 views

I have apache web server on my local computer with Ubuntu 11.04 (ip: 192.168.120.10). There is two virtual hosts, "test" and "server". Router: D-link DIR-300 with firmware: DD-WRT v24-sp2

I want that virtual hosts "test" and "server" was available on other local computers.

On DD-WRT in DNSMasq section i input:

address=/test/192.168.120.10
address=/server/192.168.120.10

But i can access these hosts from local machines only by ServerAlias (www.test and www.server) There is my httpd.conf part:

<VirtualHost *:80>
    ServerName test
    ServerAlias www.test
    DocumentRoot "/home/user/www/test/www/"
    ErrorLog "/home/user/www/test/logs/error.log"
</VirtualHost>
<VirtualHost *:80>
    ServerName server
    ServerAlias www.server
    DocumentRoot "/home/user/www/server/www/"
    ErrorLog "/home/user/www/server/logs/error.log"
</VirtualHost>

What i can to do, that my VirtualHosts will available without alias (http://test/ , http://server/)?

Variant with editing original hosts file is unsuitable. Thanks

asked May 20, 2011 11:12 am CDT
posted via StackOverflow

0 Answers

Be the first to answer this question

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions