• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Serveralias in vhost.conf but php does not work

M

marcusj

Guest
I know this is an 'old' issue but nothing about the following problem.

I want to point 5 domains to one directory. As say in the SW manual and this forum I created a vhost.conf-file with the following content:

-----------------------------------------------
ServerAlias 2005.domain1.de
ServerAlias *.domain2.net

DocumentRoot /home/httpd/vhosts/domain1.de/httpdocs/html

php_flag register_globals on
-----------------------------------------------

the domains are pointing to the correct directory but php is not working (i.e only html-files are shown).

Any idea ? With www.domain1.de php is wokring fine.

Thanks

Marcus
 
This is because you use the DocumentRoot directive, which overrides the httpd.include settings for the preceding DocumentRoot.
 
Back
Top