would i just symlink the public folder in the public_html to the subdomain name?
can a ftp user upload files to a public folder so they can be viewed by www.url.com/folder/some.jpg?
- Koloa
- Posts: 21
- Starts: 15
- Wiki Edits: 0
- Location: south jersey
if so, how to?
would i just symlink the public folder in the public_html to the subdomain name?
would i just symlink the public folder in the public_html to the subdomain name?
- Rahul
- Posts: 509
- Starts: 0
- Wiki Edits: 1
Hello,
You can make use of FTP manager to add the ftp accounts for additional users.
# Click on the Ftp Manager button in your cPanel control panel
# Click on the FTP Accounts link.
# Click on the Add Account link.
# Enter the name of the FTP account in the Login field and the password for the account in the Password field.
# Enter the path to the directory to which this FTP account has access.
If you enter the top-level of the web site by entering a slash (/), all users with the correct password will be able to add, edit, and delete all files on your site (public_html). So it is always advisable to limit an FTP account to a smaller section of your web site (i.e to a sub-dir under public_html).
# Click on the Create button.
Also once you sym-link the public directory of a rails app to the public_html, then you can just add / (as the path to the directory to which this FTP account has access)to make this (rails app) public directory accessible to ftp users.
You can make use of FTP manager to add the ftp accounts for additional users.
# Click on the Ftp Manager button in your cPanel control panel
# Click on the FTP Accounts link.
# Click on the Add Account link.
# Enter the name of the FTP account in the Login field and the password for the account in the Password field.
# Enter the path to the directory to which this FTP account has access.
If you enter the top-level of the web site by entering a slash (/), all users with the correct password will be able to add, edit, and delete all files on your site (public_html). So it is always advisable to limit an FTP account to a smaller section of your web site (i.e to a sub-dir under public_html).
# Click on the Create button.
Also once you sym-link the public directory of a rails app to the public_html, then you can just add / (as the path to the directory to which this FTP account has access)to make this (rails app) public directory accessible to ftp users.
2007-09-19 07:44 PM
Regards,Rahul
- Koloa
- Posts: 21
- Starts: 15
- Wiki Edits: 0
- Location: south jersey
hi,
thanks, but does it have to be a rails app? can i symliink a regular folder?
thanks, but does it have to be a rails app? can i symliink a regular folder?
2007-09-19 07:54 PM
nj rails grunt!- Koloa
- Posts: 21
- Starts: 15
- Wiki Edits: 0
- Location: south jersey
ok, got it setup. however, how can i set it up so a folder s contents can be listed?
2007-09-19 08:24 PM
nj rails grunt!- Koloa
- Posts: 21
- Starts: 15
- Wiki Edits: 0
- Location: south jersey
i found how to turn on the indexing, but i think my rails app thinks i am trying to refer to a controller. the ftp folder is located in the public folder of my rails app.
site.site.com/myfolder/files. id like to list the contents of myfolder. i guess i must change routes?
site.site.com/myfolder/files. id like to list the contents of myfolder. i guess i must change routes?
2007-09-19 08:32 PM
nj rails grunt!- Koloa
- Posts: 21
- Starts: 15
- Wiki Edits: 0
- Location: south jersey
nevermind, figure it out. it was in the .htaccess.
2007-09-19 08:37 PM
nj rails grunt!- Rahul
- Posts: 509
- Starts: 0
- Wiki Edits: 1
Hello,
Ok..Do you mean that this sub-domain is taken as a rails app on accessing the URL, though it is not associated with the rails app. If this is the case then we can change the Document Root of the sub-domain to point to the correct path directly to avoid the issue or put in rewrite rules to acheive the same. Either way it will be better to post a ticket to support indicating the issue with relevant domain details.
Ok..Do you mean that this sub-domain is taken as a rails app on accessing the URL, though it is not associated with the rails app. If this is the case then we can change the Document Root of the sub-domain to point to the correct path directly to avoid the issue or put in rewrite rules to acheive the same. Either way it will be better to post a ticket to support indicating the issue with relevant domain details.
2007-09-19 08:41 PM
Regards,Rahul