HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: apache virtual hosts question
Operating System - Linux
1828038
Members
1815
Online
109973
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 12:50 PM
07-24-2003 12:50 PM
apache virtual hosts question
Version: apache 2.0.46
System: Linux
I have a vitual host
Documentroot /home
ServerName www.myname.edu
ErrorLog /var/log/default.log
CustomLog /var/log/error.log
# other directives
I want httpd to log requests and errors from "/home/*/*/public_html" to
different files
Can I do this by creating another virtual host ??
The server name has to be the same so whatever I tried doesn't work.
I am using the NameVirtualHost directive.
Any other way to do it ?
Thanks,
Sriram
System: Linux
I have a vitual host
Documentroot /home
ServerName www.myname.edu
ErrorLog /var/log/default.log
CustomLog /var/log/error.log
# other directives
I want httpd to log requests and errors from "/home/*/*/public_html" to
different files
Can I do this by creating another virtual host ??
The server name has to be the same so whatever I tried doesn't work.
I am using the NameVirtualHost directive.
Any other way to do it ?
Thanks,
Sriram
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 03:10 PM
07-24-2003 03:10 PM
Re: apache virtual hosts question
From what I can tell in the documentation, there's nothing stopping you from doing:
# other directives
CustomLog /var/log/home-access.log
# other directives
CustomLog /var/log/home-access.log
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 07:10 PM
07-24-2003 07:10 PM
Re: apache virtual hosts question
ServerAdmin sprotter@investmenttool.com
DocumentRoot /home/webusers/loweslaw/htdocs
ServerName loweslaw.com
ScriptAlias /cgi-bin/ "/home/webusers/loweslaw/cgi-bin/"
ErrorLog logs/loweslaw.com.error_log
CustomLog logs/loweslaw.com.access_log common
Thats a working Virtual Host entry, note that error logs and access log is redirected to the location of my choice.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 12:24 AM
07-27-2003 12:24 AM
Re: apache virtual hosts question
if i understand correctly you would like to enable the users web-sites from the public_html directory in their home folders .
so .. you cannot do that by virtual host decleration . what you need to do is that :
1. creat the folder public_html in your user home folder
2. comment out the line : UserDir disable
in your /etc/httpd/conf/httpd.conf
3. uncomment (enable )the following line : UserDir public_html in your /etc/httpd/conf/httpd.conf file
4. change the permmision of the home folder that contain the public_html to 711
5. change the permmision for the public_html and the docs in it to 755
6. restart your httpd service and have fun.
so .. you cannot do that by virtual host decleration . what you need to do is that :
1. creat the folder public_html in your user home folder
2. comment out the line : UserDir disable
in your /etc/httpd/conf/httpd.conf
3. uncomment (enable )the following line : UserDir public_html in your /etc/httpd/conf/httpd.conf file
4. change the permmision of the home folder that contain the public_html to 711
5. change the permmision for the public_html and the docs in it to 755
6. restart your httpd service and have fun.
Sababa
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP