|
Home > Archive > Apache Server configuration support > December 2007 > Virtual Host and Logging
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Virtual Host and Logging
|
|
| Laura Anderson 2007-11-30, 7:40 am |
| Hello,
I added a virtual server for a domain I am hosting and i have a
problem with logging.
The operating system is Windows XP SP2 and Apache is version 2.2.4.
Here is the virtual server entry:
<VirtualHost *:80>
ServerName woodpta.org
ServerAlias www.woodpta.org
DocumentRoot "c:\website\woodpta"
Customlog logs/woodpta.log combined
</VirtualHost>
Woodpta.org points to my IP address. It is a DNS entry and not a URL
forward.
The server does properly find the document root and the website is
displayed, but nothing is logged except access from my own internal
network at 192.168.1.1
A new log file is created with the corerct name when the server is
started
No other logging entries for this domain exist in the configuration.
Does anyone have an idea of how of what I did wrong?
Thank you.
| |
| shimmyshack 2007-12-01, 7:37 am |
| On Nov 30, 12:05 pm, Laura Anderson <laura...@yahoo.com> wrote:
> Hello,
>
> I added a virtual server for a domain I am hosting and i have a
> problem with logging.
>
> The operating system is Windows XP SP2 and Apache is version 2.2.4.
>
> Here is the virtual server entry:
>
> <VirtualHost *:80>
> ServerName woodpta.org
> ServerAliaswww.woodpta.org
> DocumentRoot "c:\website\woodpta"
> Customlog logs/woodpta.log combined
> </VirtualHost>
>
> Woodpta.org points to my IP address. It is a DNS entry and not a URL
> forward.
>
> The server does properly find the document root and the website is
> displayed, but nothing is logged except access from my own internal
> network at 192.168.1.1
>
> A new log file is created with the corerct name when the server is
> started
>
> No other logging entries for this domain exist in the configuration.
>
> Does anyone have an idea of how of what I did wrong?
>
> Thank you.
if that is indeed the website name, a dnslookup comes back as
#~> www.woodpta.org
Non-authoritative answer:
Name: woodpta.org
Address: 68.178.232.100
Aliases: www.woodpta.org
which is in this netblock
OrgName: GoDaddy.com, Inc.
OrgID: GODAD
Address: 14455 N Hayden Road
Address: Suite 226
City: Scottsdale
StateProv: AZ
PostalCode: 85260
Country: US
NetRange: 68.178.128.0 - 68.178.255.255
CIDR: 68.178.128.0/17
NetName: GO-DADDY-SOFTWARE-INC
NetHandle: NET-68-178-128-0-1
Parent: NET-68-0-0-0-0
I assume you dont live there so I would say its the A record in your
DNS that needs changing to point at your (presumably static) home IP
address, then you will start to see traffic from external IP addresses.
| |
| Laura Anderson 2007-12-02, 1:42 am |
| Thanks for your reply.
At the time I tried this, the domain was pointing to my static IP
address.
I have since changed it back to just using domain forwarding so I
could get the logging accomplished.
I tried it again today and had the same problem. The domain is
pointing at my IP address but the server will only log my internal
accesses.
Traffic from outside my network can see the website but the traffic is
not logged.
I can log by using domain forwarding and having the CustomLog
statement outside virtual host section. It won't log external traffic
with a DNS pointer and the CustomLog statement inside the virtualhost
section, however the website is available this way.
Thanks.
Laura
On Sat, 1 Dec 2007 02:52:50 -0800 (PST), shimmyshack
<matt.farey@gmail.com> wrote:
>On Nov 30, 12:05 pm, Laura Anderson <laura...@yahoo.com> wrote:
>
>if that is indeed the website name, a dnslookup comes back as
>
>#~> www.woodpta.org
>
>Non-authoritative answer:
>Name: woodpta.org
>Address: 68.178.232.100
>Aliases: www.woodpta.org
>
>which is in this netblock
>
>OrgName: GoDaddy.com, Inc.
>OrgID: GODAD
>Address: 14455 N Hayden Road
>Address: Suite 226
>City: Scottsdale
>StateProv: AZ
>PostalCode: 85260
>Country: US
>
>NetRange: 68.178.128.0 - 68.178.255.255
>CIDR: 68.178.128.0/17
>NetName: GO-DADDY-SOFTWARE-INC
>NetHandle: NET-68-178-128-0-1
>Parent: NET-68-0-0-0-0
>
>I assume you dont live there so I would say its the A record in your
>DNS that needs changing to point at your (presumably static) home IP
>address, then you will start to see traffic from external IP addresses.
|
|
|
|
|