Re: Local Apache
| From: | DjNA) | Date: | Wed, 05 Sep 2001 12:24:02 +0000 |
| Subject: | Re: Local Apache | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9197@lists.php.net to get a copy of this message | ||
I think that if you send the option bind to 127.0.0.1 or localhost, that may work.
Failing that, using the VirtualHost options, if you create two, and set one as 127.0.0.1 and the other as _default_, then you can create two sites, one which you can view (localhost), and the other to say that you can't access this site or something.
<VirtualHost _default_>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/default/
ServerName my.domain.name
ErrorLog logs/default-error_log
CustomLog logs/default-access_log common
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName localhost
ErrorLog logs/127.0.0.1-error_log
CustomLog logs/127.0.0.1-access_log common
</VirtualHost>
Hope that helps,
Jonathan Wright..
At 11:53 05.09.01 +0200, Sichta Daniel wrote:
Hi, My PC is in network. I'm using Apache for developing sites but I don't want to other people in network access my Apache. What should I change in httpd.conf file ? Or is it possible to do it ? DAN__________________________________________________ Jonathan Wright (DjNA) mail@djna.fsnet.co.uk