| | |
vsftpd & httpd
![]() |
•
•
Join Date: Jul 2005
Posts: 7
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jul 2005
Posts: 7
Reputation:
Solved Threads: 0
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?
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
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
•
•
Join Date: Jul 2005
Posts: 7
Reputation:
Solved Threads: 0
Here is my httpd.conf file. I am going to list just the stuff I changed. Everything else is default.
When I restart my httpd service, I get DocumentRoot must be a directory. Does the documentroot have to be /var/www?
Thanks,
Chris
•
•
•
•
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
Thanks,
Chris
![]() |
Similar Threads
- PHP safe_mode & effects of turning it off... (PHP)
- configuring vsftpd (*nix Software)
- Redirects & it's affect on SEs (Search Engine Optimization)
- Help, no ftp or http response (*nix Software)
- PHP & File Extensions (PHP)
Other Threads in the *nix Software Forum
- Previous Thread: I can't get crontab running
- Next Thread: Unable to FTP
Views: 2564 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for *nix Software
2005 apache bashscripting busybox cert codeplex debian dotnetnuke emacs forwarding free fsf gaming gnu government gpl lawsuits license linux ls mail make makefile mandriva microsoft mkisofsiso obama open opensource port postfix ps3 samba security server sflc sharing software source stallman subdirectory ubuntu unix vmware xbox






