Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-29-2006, 10:00 AM
|
#1
|
Member
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62
Rep:
|
Not able to change the root folder in apache2
I installed apache2 and everything went fine with the defalt home page which is mapped to /srv/www/htdocs. Now I want to change the default home to /srv/www/myhome. So I made the follwoing changes in default-server.conf file.
#DocumentRoot "/srv/www/htdocs"
DocumentRoot "/srv/www/myhome"
#
# Configure the DocumentRoot
#
#<Directory "/srv/www/htdocs">
<Directory "/srv/www/myhome">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
After making this change if I run apache2ctl configtest I'm getting a output "Syntax OK". But when I restart my apache2 server it still points to the htdocs home page. Is there anything else I need to change to change the home folder? I checked the logs and everthing seems to be smooth and not able to find any errors. Could someone please help me resolving this problem.
|
|
|
03-29-2006, 11:47 AM
|
#2
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Rep:
|
It sounds like there might be a virtual host conflict. Make sure that your default virtual host is configured for /srv/www/myhome.
|
|
|
03-30-2006, 12:50 AM
|
#3
|
Member
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62
Original Poster
Rep:
|
How to check the default virtual host?
Thanx.
|
|
|
03-30-2006, 01:17 AM
|
#4
|
Member
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124
Rep:
|
..................
Last edited by Ellops; 03-30-2006 at 01:21 AM.
|
|
|
03-30-2006, 11:13 AM
|
#5
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Rep:
|
Well, seeing that your distro is SUSE, you should easily be able to determine this using YaST. Start up YaST -> Network Services -> httpd. There should be a section for virtual hosts, somewhere in there you can edit your default virtual host.
|
|
|
03-30-2006, 12:56 PM
|
#6
|
Member
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321
Rep:
|
`httpd -S`
|
|
|
03-31-2006, 04:07 PM
|
#7
|
Member
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62
Original Poster
Rep:
|
You are right pdeman2. When I use http://127.0.0.1/ it takes me to the default home page provided by apache2. When I use http://myserver/ it properly takes me to my home page. Thanks a lot for your help.
|
|
|
All times are GMT -5. The time now is 03:39 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
|
|