Re: apache and php
Matthew Weier O'Phinney wrote:
>>>
>>>Actually, set ServerName to 127.0.0.1 or localhost, like thus:
>>> ServerName 127.0.0.1
>>>or
>>> ServerName localhost
>>>
>>>DON'T specify it as:
>>> Servername http://127.0.0.1
>>
>>
>>I am not sure that you are correct. Here are the relevant comment lines
>>from the original /etc/apache/httpd.conf file:
>>
>># If your host doesn't have a registered DNS name, enter its IP address
>>here.
>># You will have to access it by its address (e.g., http://123.45.67.89/)
>># anyway, and this will make redirections work in a sensible way.
>>
>
> You enter it in httpd.conf as "127.0.0.1" but you /access/ it in your
> /browser/ as http://127.0.0.1/ -- that was the point I was making.
Well, no. I have not altered this part of the file since it was created
by some installation (probably the apache .deb package). An installation
program entered or modified the entry. Here is the complete line in
httpd.conf.
ServerName http://127.0.0.1/
--
___ Chris Lale <ctlale@coolscience.co.uk>
/ \
| <_/ My PC runs Debian GNU/Linux 3.0.
\ Robust, secure and free operating system + applications.
\ Available at http://www.debian.org
--
___ Chris Lale <ctlale@coolscience.co.uk>
/ \
| <_/ My PC runs Debian GNU/Linux 3.0.
\ Robust, secure and free operating system + applications.
\ Available at http://www.debian.org
Reply to: