LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   question about apache2 (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-apache2-522226/)

undnyc 01-23-2007 10:03 PM

question about apache2
 
Hello im a newbie but im getting hang of linux little by little.
Im running Suse 10.1 Apache2 php server.....
What im trying to do is i have a domain pointed to one of the /home/user/public_html folder....what i want to do is i want to point /home/another_user/public_html under the same domain name so my outcome would be http://www.mydomain.com/another_user....
Can someone help me out????
thanx in advance....

pljvaldez 01-23-2007 11:20 PM

Typically you just save an index.html in /home/another_user/public_html and then do www.mydomain.com/~another_user (notice the ~). Sometimes this needs to be enabled in one of the apache config files. I don't use Suse, so I'm not sure where that lives. In Debian it's in the /etc/apache2 directory...

undnyc 01-24-2007 07:33 AM

how do i enable that????
my apace is int same path /etc/apache2/

pljvaldez 01-24-2007 11:56 AM

In my apache2.conf file there's a section that says
Code:

#UserDir is now a module
UserDir public_html
UserDir disabled root

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>

Suse might use the http.conf file.

Also, in Debian, the way to make sure this is being loaded is to put a symlink in /etc/apache2/mods-enabled for files userdir.conf and userdir.load. The actual files are in /etc/apache2/mods-available. So you would cd /etc/apache2/mods-enabled and then ln -s /etc/apache2/mods-available/userdir.load userdir.load and the same for userdir.conf. They might already be there...

undnyc 01-24-2007 12:11 PM

hey thanx alot that worked...
:)


All times are GMT -5. The time now is 01:05 AM.