Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Ok I'm coming over from IIS world to Apache since I switched to the light-side and I can't figure out how to set it up. I installed it and tested it and http://localhost goes to the apache welcome screen. Now how do I redirect the localhost to the index.html file in the /home/<usrName>/WebSite/ dir? I don't think I'm stupid but I can't figure out the online tutorials.
Never used it, never looked at a tutorial for it, but
thought this looked quite clear...
From /etc/apache2/httpd.conf
Code:
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
UserDir public_html
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
# AllowOverride FileInfo AuthConfig Limit Indexes
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
UserDir /home/partyk1d24/WebSite
WebSite is the dir and the file inside it is Index.html but when I go to localhost I still get the Apache welcome screen. So what am I doing wrong?
However, if you're wanting to show your home dir web as the *index* for your apache, you'll need to change the document root setting although this is NOT advised and would actually make little sense. However, it is *your* system and you can do what you like.
If I understood your first request correctly, you were wanting to be able to pull up http://localhost in your browser and have it point to this ~ dir. This is still not going to do it unless you change your root document or create a vhost called 'localhost' and have it point to the dir of your choice. If I'm wrong, please point it out, but I don't think the last things posted will work as desired.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.