Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

VHost Log files not working

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  CAB file extraction error while using IIS 4-&..  
Author Message
cty76220

External


Since: Dec 14, 2004
Posts: 4



(Msg. 1) Posted: Tue Dec 14, 2004 7:25 pm
Post subject: VHost Log files not working
Archived from groups: alt>apache>configuration (more info?)

I have vhosts defined as below but have not been able to get the site
log files to work. Any and all log msgs are being saved in the root log
files. I have tried using various paths to get the vhost logs to save
in the vhost files but have not been able to.

Things I have tried are:
ErrorLog d:/www/Capri/logs/error.log #apache won't start
CustomLog d:/www/Capri/logs/access.log common #apache won't start
ErrorLog www/Capri/logs/error.log
CustomLog www/Capri/logs/access.log common
ErrorLog /Capri/logs/error.log
CustomLog /Capri/logs/access.log common
ErrorLog Capri/logs/error.log
CustomLog Capri/logs/access.log common

Thanks for your help.
Jim

My apache install and vhost cfg are:

Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/5.0.2 Server

NameVirtualHost 192.168.123.102:80

<VirtualHost 192.168.123.102:80>
ServerAdmin Administrator.RemoveThis@jim.dynalias.net
DocumentRoot d:/www/
ServerName jim.dynalias.net
ServerAlias localhost
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>

<VirtualHost 192.168.123.102:80>
ServerAdmin Administrator.RemoveThis@jim.dynalias.net
DocumentRoot d:/www/Capri/
ServerName jim.dynalias.net
ServerAlias capri
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>

<VirtualHost 192.168.123.102:80>
ServerAdmin Administrator.RemoveThis@jim.dynalias.net
DocumentRoot d:/www/websales/
ServerName websales.jim.dynalias.net
ServerAlias websales
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>

NameVirtualHost 192.168.123.102:443

<VirtualHost 192.168.123.102:443>
ServerAdmin Administrator.RemoveThis@jim.dynalias.net
DocumentRoot d:/www/websales/
ServerName websales.jim.dynalias.net
ServerAlias websales
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>

 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Wed Dec 15, 2004 6:35 pm
Post subject: Re: VHost Log files not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"James Pearson" <cty76220.RemoveThis@centurytel.net> schreef in bericht
news:XtednVaOyYJPMyLcRVn-jQ@centurytel.net...
 > I have vhosts defined as below but have not been able to get the site
 > log files to work. Any and all log msgs are being saved in the root log
 > files. I have tried using various paths to get the vhost logs to save
 > in the vhost files but have not been able to.
 > ServerAlias websales
 > ErrorLog logs/error.log
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#errorlog:" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#errorlog:</a>
If the file-path is not absolute then it is assumed to be relative to the
ServerRoot.

HansH<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
cty762201

External


Since: Dec 16, 2004
Posts: 1



(Msg. 3) Posted: Thu Dec 16, 2004 3:43 am
Post subject: Re: VHost Log files not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hans,

Thank-you for your response. I see from reading that bit of
documentation that I need to remove the trailing slash from the docroot
lines so I have the following:

DocumentRoot d:/www/capri
ErrorLog logs/error.log
CustomLog logs/access.log common

If I understand the documentation correctly the lines below would
produce the following paths to the log files:

d:/www/capri/logs/error.log
d:/www/capri/access.log common

Would this be correct?

Jim

HansH wrote:
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#errorlog:</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#errorlog:</font</a>>
 > If the file-path is not absolute then it is assumed to be relative to the
 > ServerRoot.
 >
 > HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 4) Posted: Thu Dec 16, 2004 2:35 pm
Post subject: Re: VHost Log files not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jim Pearson" <cty76220.RemoveThis@centurytel.net> schreef in bericht
news:56OdneSC1PhS6VzcRVn-1g@centurytel.net...
 > HansH wrote:
<font color=green>  > > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#errorlog:</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#errorlog:</font</a>>
  > > If the file-path is not absolute then it is assumed to be relative to
the
  > > ServerRoot.
 > Thank-you for your response. I see from reading that bit of
 > documentation that I need to remove the trailing slash from the docroot
 > lines so I have the following:
 > DocumentRoot d:/www/capri
 > ErrorLog logs/error.log
 > CustomLog logs/access.log common
 >
 > If I understand the documentation correctly the lines below would
 > produce the following paths to the log files:
 > d:/www/capri/logs/error.log
 > d:/www/capri/access.log common
Cann't tell, documentroot is not the same as serverroot.
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#serverroot" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#serverroot</a>
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#documentroot" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#documentroot</a>

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
cty76220

External


Since: Dec 14, 2004
Posts: 4



(Msg. 5) Posted: Thu Dec 16, 2004 3:32 pm
Post subject: Re: VHost Log files not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hans,

Well, then I have a bigger problem than I want because my serverroot is:

ServerRoot "C:/ApacheGroup/Apache2"

If I make the paths absoulte as below then Apache will not start:

ErrorLog d:/www/Capri/logs/error.log
CustomLog d:/www/Capri/logs/access.log common

How does one get the log files for each vhost to work on a different
drive than the server has for root?

I suppose I could do the following to break out the log files for the
different vhosts:

ErrorLog logs/caprierror.log
CustomLog logs/capriaccess.log common

Doing that though would not allow other users access to the log files
because they have no access to drive C where the server root is.

Again - Thank-you,
Jim

HansH wrote:
 > Cann't tell, documentroot is not the same as serverroot.
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#serverroot</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#serverroot</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#documentroot</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#documentroot</font</a>>
 >
 > HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 6) Posted: Thu Dec 16, 2004 8:35 pm
Post subject: Re: VHost Log files not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"James Pearson" <cty76220.TakeThisOut@centurytel.net> schreef in bericht
news:esKdnSa5QZmYhl_cRVn-ug@centurytel.net...
 > HansH wrote:
  > > Cann't tell, documentroot is not the same as serverroot.
<font color=green>  > > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#serverroot</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#serverroot</font</a>>
<font color=green>  > > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#documentroot</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#documentroot</font</a>>
 > Well, then I have a bigger problem than I want because my serverroot is:
 > ServerRoot "C:/ApacheGroup/Apache2"
 > If I make the paths absoulte as below then Apache will not start:
No problems while testing for you using Apache 2.0.50 .

 > ErrorLog d:/www/Capri/logs/error.log
 > CustomLog d:/www/Capri/logs/access.log common
Did you create all folder along the path ??
Start apache from the command line and observe the errors reported.

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
cty76220

External


Since: Dec 14, 2004
Posts: 4



(Msg. 7) Posted: Thu Dec 16, 2004 8:35 pm
Post subject: Re: VHost Log files not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hans

Thank you for your help here. I have no idea what is different now but
it has started working now the way I intended it to work. Log files
have been created and accessed in each virtual host directory as I
wanted. I simply used the lines as follows:

ErrorLog d:/www/Capri/logs/error.log
CustomLog d:/www/Capri/logs/access.log common

I have tried that before! I know I have and the server wouldn't start.
Paths were all there before just no log files were being created.

Thanks again for all your help.

Jim

HansH wrote:
 > Did you create all folder along the path ??
 > Start apache from the command line and observe the errors reported.
 >
 > HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: VHost Log files not working 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
vHost setup not working :-( - NameVirtualHost 192.168.1.100 <VirtualHost 192.168.1.100> ServerName www.test.local ServerPath /home/usrname/Documents DocumentRoot /www.test.local </VirtualHost> This is what I wrote in /etc/httpd/conf/vhosts/Vhosts.conf I also stoped and ...

mod_bandwidth, not working on PHP files - Hello group. I have tried to use "mod_bandwidth" to Limit my upload-stream. It works fine on all other files than .php. I cant really figure out why, and cant really find anything in the manual. I am using Linux Debian (testing release) wit...

DAV in vhost - Hello, I followed a dav guide and succeeded in a way that allows me to connect to a secured area. ssl.conf: <VirtualHost _default_:443> Alias /webdav/ "/home/webdav/" <Directory /home/webdav> DAV on AuthType Basic AuthNam...

VHOST or ...? - Hi, I'm a newbie on Apache, so I need help figuring out what to do when I have one webserver with one IP-address and I want to have two sites: "www.mydomain.com" and "site2.mydomain.com". The first site should respond when you type a...

VHOST - I have the domain nj2t.net allready up and running, I have just got nj2t.co.uk, can I just copy the virtual host entry for nj2t.net and paste it in as a new VHost entry and change the web parts from .net to .co.uk and keep using the same directories........
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]