Apache not logging virtual domain


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Apache not logging virtual domain
# 1  
Old 04-08-2005
Apache not logging virtual domain

A client has asked us to set up a different domain (as an alias for their site) which they could use on certain marketing material and hence measure the campaign's effectiveness. We've set it up and it all seems to be working fine except that the access log file for the new domain is stuck at zero bytes.

It doesn't appear to be a permissions problem as I've set the permissions of the new log file to those of the existing log file which seems to be logging fine.

Here's the <VirtualHost> container, I can't see anything obviously wrong with it, anyone got any ideas?

Code:
<VirtualHost xxx.xxx.xxx.xxx>
        ServerAdmin webmaster@domain.com
        DocumentRoot /var/www/www.domain.com/htdocs
        ServerName www.newdomain.ie
        ServerAlias newdomain.ie *.newdomain.ie

        LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
        TransferLog /var/log/httpd/newdomain.ie-access.log
        ErrorLog /var/log/httpd/newdomain.ie-error.log
        CustomLog /var/log/httpd/pid_log processid

        <Directory /var/www/www.domain.com/htdocs>
                AllowOverride All
        </Directory>

        Alias /shared /var/www/www.domain.com/htdocs_shared
</VirtualHost>

# 2  
Old 04-08-2005
I never define the LogFormat inside the VirtualHost directive.

In other words, our VirtualHost directives are more simple. Then again, I am a "keep it simple" kinda guy Smilie
# 3  
Old 04-13-2005
Yeah having read up on apache logging directives I see that there are much better ways of doing this but I wasn't the one who set the server up. Maybe one day I'll sort it all out...

Anyway, I've managed to fix the problem now and it was nothing to do with the logging settings; the external/internal IP mappings where just a bit fubar-ed.

Thanks for the reply tho Neo.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

Apache Virtual Path

Say there is a certain path I wish to always load the same page. So if they go to somesite.com/a/b/c, it always goes to myscript.php and fed a/b/c as a server variable. I'm fairly sure this is possible but cannot remember the term it's called, and so cannot find it in web searches or... (7 Replies)
Discussion started by: Corona688
7 Replies

2. UNIX for Dummies Questions & Answers

apache logging - show more information

is it possible to make apache log each user activity in its log file "access_log" i have a web application here that uses apache. in the apache log files, i see that it shows when requests are made to certain pages in my web application. but it doesn't show the user name of the person making... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. UNIX for Advanced & Expert Users

Sendmail virtual domain problem

For a long time we have successfully been running mail servers using sendmail+ClamAV+clamav-milter+SpamAssassin+smf_spamd-milter on Solaris both as a mail server for several domains with local users getting their mail using POP and IMAP and also as a message filtering relay for other domains where... (2 Replies)
Discussion started by: andyt22
2 Replies

4. Red Hat

Virtual Host Apache

Hi, I have set up the following virtual host but it cannot find the URL? Apache is running fine and I have disabled iptables. Within the document root I have the following file index.html displaying a sample text message. Any ideas what my problem might be? httpd.conf: ... (2 Replies)
Discussion started by: Duffs22
2 Replies

5. Web Development

Apache Virtual URL

Hi All, i'am facing a problem with urls that don't have a filestructure under DocumentRoot. A URL like http://mydomain.com/applicationrew/Structure1/Structure2/some?parameter=key&parameter1=key1 Should be rewritet to something else. Now i defined a Location like <Location ~... (3 Replies)
Discussion started by: wuschelz
3 Replies

6. Web Development

Apache virtualhost dinternal domain

Hello, I have have installed two web applications on one server with one IP address and one domain name (mynet.intra). Is it possible to configure in apache 2.2 that access to one application would be from "app1.mynet.intra" and to another application from address "app2.mynet.intra"? Document... (1 Reply)
Discussion started by: kreno
1 Replies

7. Linux

Apache Virtual Server Help

Hi I am trying to configure virtual host on apache and I am running into a problem where the server defaults to the default location and I cannot get apache to pull from the second server. I have configured 2 files in vhosts.d folder I have added NameVirtualHost *.80 to the httpd.conf I have... (0 Replies)
Discussion started by: ratnamg
0 Replies

8. UNIX for Advanced & Expert Users

logging into domain

I cannot log into domain. domain name is "mshome", i set up Samba domain server PDS, and i try to log in from Win xp but is when I put in mycomputer, domain name for xp - mshome, which is domain name, it automaticly asks for username and pass. i enter username and pass and it says - "The following... (0 Replies)
Discussion started by: salvor_hardin
0 Replies

9. UNIX for Dummies Questions & Answers

Apache virtual host

Would this be the correct entry for Apache to answer on the IP 129.250.242.126 if the servers IP is 129.250.242.125? Are any other changes necessary to get Apache to answer this IP for web traffic? < VirtualHost 129.250.242.126> ServerName www.my_domain.com ServerAdmin admin@my_domain.com... (4 Replies)
Discussion started by: 98_1LE
4 Replies
Login or Register to Ask a Question