You are not logged in.
Hey!
1) I just got Apache and VSFTPD up and running. I got a domain name connected by a dynamic DNS service to my IP, so I can log in via SSH and FTP to my account. However, visiting www.mydomain.com in a web browser defaults to the /srv/http folder - and the files uploaded by users are found in ~/public_html which are found at www.mydomain.com/~username. Is that a security risk, having the username being displayed openly?
2) I've tried changing the permissions of the /srv/http folder, but I still can't edit it unless I'm logged in as root. At the installation of Apache a user http was created, but the folder itself belongs to user 0 and group 0 according to my FTP client. In SSH it looks like this:
> ls -l
total 8
dr-xr-xr-x 2 root ftp 4096 2009-06-11 15:54 ftp
drwxr-xr-x 2 root root 4096 2009-06-11 11:22 http
Is that folder supposed to be editable by users? How can I arrange it to be editable in an easy way?
Regards,
T
Credit to KiwiesRuleXD @ DeviantArt for the avatar.
Offline
I found this tutorial on chmod that I'm trying to understand, but I can' seem to find out about this particular problem.
Credit to KiwiesRuleXD @ DeviantArt for the avatar.
Offline
/srv/http but you can create aliases and symlinks for another folders outside it.
Offline
You just have to copy all of your web content using an ftp client or by using the cp command to the /srv/http directiory and it will work. If you need to make configuration changes use the httpd.conf file in the /etc/httpd/conf/. In the http.conf file it will let you change the default document root "/srv/http" to what ever directory you would like to use. Hope this helps.
Last edited by Ronin15 (2009-06-14 08:07:17)
"Once you go Arch you will never go back"
Offline