944,111 Members | Top Members by Rank

Ad:
Jul 19th, 2005
0

vsftpd & httpd

Expand Post »
Hi,

I am running FC4 and my website successfully. I have sort of stumbled onto a different avenue. I finally got my vsftpd to allow users to log into the server as long as their home directory is set to /home/(user), (user) being their login. I have the web page in the /var/www/(user) directory. Is it possible for me to modify my httpd.conf file to allow the webpages be displayed while the files are in their home directory? For instance, if I am hosting a website about Fish, and I create a directory in /home/fish for the
user, can I have index.html in /home/fish directory and be able to get to it without it being in /var/www? I am sure I can modify the httpd.conf file but I am not sure how to do it.

Thanks,

Chris
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cdawley4 is offline Offline
7 posts
since Jul 2005
Jul 19th, 2005
0

Re: vsftpd & httpd

maybe this is what you're looking for:

http://httpd.apache.org/docs-2.0/urlmapping.html
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Jul 19th, 2005
0

Re: vsftpd & httpd

That is sort of what I was looking for, but I thought if you uncomment the UserDir public_html enable, it would allow you to use their home directory. I tried to enable that option and put the index.html under the user's home directory and got the Apache maintenance page. Is there anything else I need to do or will the redirect fix it?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cdawley4 is offline Offline
7 posts
since Jul 2005
Jul 19th, 2005
0

Re: vsftpd & httpd

Oh yeah!

You'll have to excuse me-- I'm not sitting in front of a system with Apache on it right now.

You just make a public_html folder in the user's directory, and put the files there. That way, when you type:

http://webserver ip/~username

The page will show up that you put in /home/username/public_html
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Jul 19th, 2005
0

Re: vsftpd & httpd

Here is my httpd.conf file. I am going to list just the stuff I changed. Everything else is default.

Quote ...
UseCanonicalName On
<Directory "/home/*/public_html/">
#UserDir disable
UserDir public_html

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

DirectoryIndex index.html index.html.var

AccessFileName .htaccess
When I restart my httpd service, I get DocumentRoot must be a directory. Does the documentroot have to be /var/www?

Thanks,

Chris
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cdawley4 is offline Offline
7 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: I can't get crontab running
Next Thread in Linux Applications and Software Forum Timeline: Unable to FTP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC