Virtual Host and Logging

Virtual Host and Logging

am 30.11.2007 13:05:40 von Laura Anderson

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:


ServerName woodpta.org
ServerAlias www.woodpta.org
DocumentRoot "c:\website\woodpta"
Customlog logs/woodpta.log combined


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.

Re: Virtual Host and Logging

am 01.12.2007 11:52:50 von shimmyshack

On Nov 30, 12:05 pm, Laura Anderson 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:
>
>
> ServerName woodpta.org
> ServerAliaswww.woodpta.org
> DocumentRoot "c:\website\woodpta"
> Customlog logs/woodpta.log combined
>

>
> 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.

Re: Virtual Host and Logging

am 02.12.2007 05:57:47 von Laura Anderson

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
wrote:

>On Nov 30, 12:05 pm, Laura Anderson 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:
>>
>>
>> ServerName woodpta.org
>> ServerAliaswww.woodpta.org
>> DocumentRoot "c:\website\woodpta"
>> Customlog logs/woodpta.log combined
>>

>>
>> 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.