Note that there are some explanatory texts on larger screens.

plurals
  1. POApache virutalhost subdomains point to same directory
    primarykey
    data
    text
    <p>elloo,</p> <p>i have two virtualhost subdomains point to different directories however when i load both subdomains in the browser, i get them both pointing to same directory. here is my vhost.conf</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin admin@domain.com ServerName subdomain1.domain.com ServerAlias *.domain.com #Indexes + Directory Root. DirectoryIndex index.php DocumentRoot /subomain1/path/to/directory/trunk #Logfiles ErrorLog /subomain1/path/to/directory/trunk/error.log CustomLog /subomain1/path/to/directory/trunk//access.log combined &lt;/VirtualHost&gt; &lt;VirtualHost *:443&gt; ServerAdmin admin@domain.com ServerName subdomain1.domain.com ServerAlias *.subdomain.com DirectoryIndex index.php DocumentRoot /subomain1/path/to/directory/trunk SSLEngine On SSLCertificateFile /ssl/certs/subdomain1.crt SSLCertificateKeyFile /ssl/private/subdomain1.key SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown &lt;/VirtualHost&gt; &lt;VirtualHost *:80&gt; ServerAdmin admin@domain.com ServerName subdomain2.domain.com ServerAlias *.domain.com #Indexes + Directory Root. DirectoryIndex index.php DocumentRoot /subomain2/path/to/directory/trunk #Logfiles ErrorLog /subomain2/path/to/directory/trunk/error.log CustomLog /subomain2/path/to/directory/trunk//access.log combined &lt;/VirtualHost&gt; &lt;VirtualHost *:443&gt; ServerAdmin admin@domain.com ServerName subdomain2.domain.com ServerAlias *.subdomain.com DirectoryIndex index.php DocumentRoot /subomain2/path/to/directory/trunk SSLEngine On SSLCertificateFile /ssl/certs/subdomain2.crt SSLCertificateKeyFile /ssl/private/subdomain2.key SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown &lt;/VirtualHost&gt; </code></pre> <p>i have tried google however none of the answers seems to help. </p> <p>i'm using ubuntu server</p> <p>many thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload