Linux - SoftwareThis 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.
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.
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.
#
# 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.