i have setup a new site www.example.org (dummy name) on my linode VPS (i am using ubuntu 10) as below:
<VirtualHost *:80>
ServerAdmin webmaster@example.org
ServerName example.org
ServerAlias www.example.org
DocumentRoot /var/www/example.org/public_html/
ErrorLog /var/www/example.org/logs/error.log
CustomLog /var/www/example.org/logs/access.log combined
</Vir
I have added sub.example.com as a new A record in my DNS manager, and created the virtual host file:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName sub.example.com
ServerAlias sub.example.com
DocumentRoot /srv/www/sub.example.com/public_html/
ErrorLog /srv/www/sub.example.com/logs/error.log
CustomLog /srv/www/sub.example.com/logs/access.log combined
For example, I have a log path called /home/log/error.log.
I created new virtual host, but when I try to request it, Apache redirects me to another virtual host.
Description
Now I have setup up a site in Apache using vhost.
Hi all
I've just finished setup of a new server with CPanel.
In every user home I see the access-logs symlink which points to /usr/local/apache/domlogs/user/ but these directories are empy: the logs are in /usr/local/apache/domlogs/
How can I make the logs visible to the users?
I have a cherrypy wsgi app tha works fine when it is mounted at the root url:
<VirtualHost 127.0.0.1:80>
ServerName test.com
ServerAlias test
WSGIScriptAlias / /var/www/app/app.wsgi
ErrorLog /var/www/logs/error_log
CustomLog /var/www/logs/access_log combined
</VirtualHost>
But it returns a 404 when trying to mount to any other url:
<VirtualHost 127.0.0.1:8
I have 2 domains
ex1.com
ex2.com
DNS records: MYIP @ my.ex2.com
httpd-vhosts.conf
<VirtualHost *:1337>
DocumentRoot "D:/Webserver/domains/ex1.com/www"
ServerName "ex1.com"
ServerAlias "ex1.com" "sub.my.ex2.com"
ErrorLog "logs/ex-error.log"
CustomLog "logs/ex-access.log" common
<Directory "D:/Webserver/domains/ex1.com">
Allow From all
AllowOverride All
</Directory>
&
When in a site apache conf file, is there a way to set the user and group for the CustomLog and ErrorLog?
Right now, these 2 records create the error and access log with root:root permissions, but I would like them to be flewis:admin
CustomLog /var/log/httpd/domain.com-access.log combined
ErrorLog /var/log/httpd/domain.com-error.log
If I change the user:group of the files, when the logs rotate,