| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
07-26-2008, 06:06 AM
|
#16
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Any luck on the greps?
|
|
|
|
07-26-2008, 10:29 AM
|
#17
|
|
LQ Newbie
Registered: Feb 2007
Posts: 21
Original Poster
Rep:
|
Quote:
Originally Posted by billymayday
Any luck on the greps?
|
[root@cl-t110-070cl sshadmin]# grep DocumentRoot /etc/httpd/conf/httpd.conf
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/home/www"
# This should be changed to whatever you set DocumentRoot to.
# DocumentRoot /www/docs/dummy-host.example.com
VirtualDocumentRoot /home/www/%0
[root@cl-t110-070cl sshadmin]# find /etc/httpd/conf.d -type f | xargs grep DocumentRoot
[root@cl-t110-070cl sshadmin]#
any idea why /home/www is not acting as the doc_root ?
|
|
|
|
07-26-2008, 10:37 AM
|
#18
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
I'm off to bed, but I'd guess %0 represents your IP, and I'd be looking in httpd.conf at the spot where VirtualDocumentRoot is defined. If you want, post the relevant section (it should be fairly obvious) and I'll look tomorrow if someone else doesn't in the meantime.
|
|
|
|
07-26-2008, 12:30 PM
|
#19
|
|
LQ Newbie
Registered: Feb 2007
Posts: 21
Original Poster
Rep:
|
Here is the entire virtual host section of my httpd.conf
Code:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
VirtualDocumentRoot /home/www/%0
VirtualScriptAlias /home/www/%0/cgi-bin/
Thank you for your time. 
|
|
|
|
07-26-2008, 06:39 PM
|
#20
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
I'll bet that's you issue. Either comment these lines out (should be OK), change them by deleting the %0, or probably just use the IP subdirectory for you root - that way you can easily add more IPs later
|
|
|
|
07-27-2008, 01:55 AM
|
#21
|
|
LQ Newbie
Registered: Feb 2007
Posts: 21
Original Poster
Rep:
|
Yes, it works exactly as you said. The %0 is the current IP.
Thank you very much for the clarification. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:34 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|