I'm wondering what the best way or what way I should do this.

I have a secure site https://www.example.com and https://www.example.com/contactus

https://www.example.com is in the directory /home/examplesite/www

https://www.example.com/contactus is in /home/contacts/docs

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

Assuming this is Linux, and you're not using a control panel, you could use a symbolic link here. It requires having the right permissions in both, and AllowSymlinks (I think) being setup in the apache configuration, but as far as I'm aware this is usually default for vhosts. Simply:

cd /home/examplesite/www
ln -s /home/contacts/docs contactus

link|improve this answer
Probably the simplest way. Thanks for your help. – Michael Burns Nov 10 '10 at 17:04
feedback

Actually the proper Apache method / approach would to be use an Alias instead of maintaining symlinks

Alias /contactus /home/contacts/docs

It all depends on how you want to do it.. (from the OS, or from Apache)

Hope this helps :D

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.