/ Published in: Other
Use this when you want to serve a domain from the document root of another domain on the same box. Along with this config, you will want to replace the httpdocs directory with a symlink to the other domains doc root. (Don't forget to change ownership of the symlink to match the owner of the destination doc root.)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<Directory /home/httpd/vhosts/example.com/httpdocs> Options -Includes -ExecCGI -FollowSymLinks +Indexes <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir none </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir none </IfModule> </Directory>