homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Symlink help
Web App moved to subdomain accessed via symlink

10+ Year Member

Msg#: 3542953 posted 10:15 am on Jan 8, 2008 (gmt 0)


I would like to ask if someone can point any issues out with storing my php application in a subdomain but accessed via symlink in customers domain so that they can't touch, download or delete the system files.

Also is this a safe correct way of doing it?

777 - cust-example.com/system/ is a symlink to

Above Document Root
755 - system.cust-example.com/system

755 - system.cust-example.com/docroot

So far all seems to be working and when trying to access the system via the symlink through ftp access is denied.

Our web site also has mod_rewrites in a htaccess file that has the following example

Options +FollowSymLinks +Indexes
RewriteEngine on
RewriteBase /
RewriteRule ^holidays/(.*)/$ /system/www/country/country_index\.php?id=$1 [L]

Would appreciate any comments on anything I should look out for, I have complete SSH access etc and have general experience but I'm not a big server whizz.


I also have complete access the the httpd.conf file would it better to create an alias for that directory instead?




Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved