[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Apache Virtual Server



On Thu, Apr 30, 2009 at 3:22 PM, Tim <ignored_mailbox yahoo com au> wrote:
> On Tue, 2009-04-28 at 09:58 -0700, Dennis Kaptain wrote:
>> Just a little more information from /var/log/httpd/access_log
>>
>> When I request http://localhost I get an entry that says
>> 127.0.0.1 - - [28/Apr/2009:11:52:08 -0500] "GET / HTTP/1.1" 200 3488 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10"
>>
>> When I request http://confianza I get an entry that says
>> 127.0.0.1 - - [28/Apr/2009:11:53:06 -0500] "GET / HTTP/1.1" 200 3488 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10"
>>
>> When I request http://confianzazend I get an entry that says
>> 127.0.0.1 - - [28/Apr/2009:11:53:54 -0500] "GET / HTTP/1.1" 200 3492 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10"
>>
>> All three entries are identical get requests for /
>
> That's normal.  They're each requests for the default root document.
>
>> Yet the php command <?php echo $_SERVER['SERVER_NAME']."<br>\n"; ?>
>> in /var/www/html/index.php
>> prints out 'localhost', 'confianza', or 'confianzazend' depending on
>> what url I call.
>
> Nothing unusual in that, either.  That's the hostname in the request
> from the client.  You could put in a bogus one, and get the same
> response.  e.g. add bogus to 192.168.0.4 in the hosts file, then request
> a page from http://bogus.  You'll get that sort of thing from your PHP
> file, even though you've not set up any "bogus" virtual host.
>
> I'd be inclined to set up different logging files in each virtual host,
> so you could see exactly which host is reacting to what.  Open up a few
> consoles, and do "tail -f /var/log/httpd/confianza" in one, and similar
> commands in the other, so you can watch each one live, as you make
> different requests.
>
> Alternatively, you can do custom logs which also includes hostnames in
> the log data.
>
> --
> [tim localhost ~]$ uname -r
> 2.6.27.21-78.2.41.fc9.i686
>
> Don't send private replies to my address, the mailbox is ignored.  I
> read messages from the public lists.
>
>
>
> --
> fedora-list mailing list
> fedora-list redhat com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>
Keep the following in mind, with Perl Regular expressions,confianza
would also match confianzazend. choose a different naming convesion,
or first decare confianzazend.


-- 
We live in an age when pizza gets to your home before the police.
  - Jeff Marder
------------------------------------------
Allan Swanepoel
allanice001 gmail com
allanice 001 unix net
dragonmaster linaccess com
+27 84 507 8492
Linux User #452990
Linux Machine #360914
-----------------------------------------------
IMPORTANT: This email is intended for the use of  the  individual
addressee(s)  named  above  and  may  contain information that is
confidential,  privileged  or  unsuitable  for  overly  sensitive
persons  with  low  self-esteem, no sense of humour or irrational
religious beliefs. If you are not  the  intended  recipient,  any
dissemination,  distribution  or copying  of  this  email is not
authorised (either explicitly or implicitly) and  constitutes  an
irritating  social  faux  pas. Unless the word absquatulation has been
used in its correct context somewhere  other  than  in  this warning,
it does not have any legal or grammatical use and may be ignored. No
animals were  harmed  in  the  transmission  of  this email,  although
 the  yorkshire  terrier  next door is living on borrowed time, let me
tell you. Those of you with an overwhelming fear  of  the unknown will
be gratified to learn that there is no hidden message revealed by
reading  this  warning  backwards,  so just ignore that Alert Notice
from Microsoft: However, by pouring a complete circle of salt around
yourself and your  computer  you can  ensure  that  no harm befalls
you and your pets.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]