vsftpd & httpd

Reply

Join Date: Jul 2005
Posts: 7
Reputation: cdawley4 is an unknown quantity at this point 
Solved Threads: 0
cdawley4 cdawley4 is offline Offline
Newbie Poster

vsftpd & httpd

 
0
  #1
Jul 19th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: vsftpd & httpd

 
0
  #2
Jul 19th, 2005
maybe this is what you're looking for:

http://httpd.apache.org/docs-2.0/urlmapping.html
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 7
Reputation: cdawley4 is an unknown quantity at this point 
Solved Threads: 0
cdawley4 cdawley4 is offline Offline
Newbie Poster

Re: vsftpd & httpd

 
0
  #3
Jul 19th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: vsftpd & httpd

 
0
  #4
Jul 19th, 2005
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
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 7
Reputation: cdawley4 is an unknown quantity at this point 
Solved Threads: 0
cdawley4 cdawley4 is offline Offline
Newbie Poster

Re: vsftpd & httpd

 
0
  #5
Jul 19th, 2005
Here is my httpd.conf file. I am going to list just the stuff I changed. Everything else is default.

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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the *nix Software Forum


Views: 2564 | Replies: 4
Thread Tools Search this Thread



Tag cloud for *nix Software
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC