Problem with VirtualHosts

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Problem with VirtualHosts

Postby leptoon » 23. October 2013 21:38

I'm having a problem setting up another domain on my server.

The following is copied from httpd.conf. AATech.co and the sub-domains work but gnuforum.com shows an access denied error. Any help would be much appreciated.

Code: Select all
Listen 80

<VirtualHost *:80>
        ServerAdmin contactus@aatech.co
        ServerName aatech.co
        ServerAlias www.aatech.co
        DocumentRoot /opt/lampp/htdocs/
        <Directory /opt/lampp/htdocs/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:80>
        ServerAdmin contactus@aatech.co
        ServerName gamecp.aatech.co
        ServerAlias www.gamecp.aatech.co
        DocumentRoot /opt/lampp/htdocs/gamecp/
        <Directory /opt/lampp/htdocs/gamecp/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:80>
        ServerAdmin contactus@aatech.co
        ServerName billing.aatech.co
        ServerAlias www.billing.aatech.co
        DocumentRoot /opt/lampp/htdocs/billing/
        <Directory /opt/lampp/htdocs/billing/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin contactus@aatech.co
        ServerName gamecp.aatech.co
        ServerAlias *.gamecp.aatech.co
        DocumentRoot /opt/lampp/htdocs/gamecp/
        <Directory /opt/lampp/htdocs/gamecp/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/STAR_aatech_co.crt
SSLCertificateKeyFile /etc/ssl/aatech_co.key
SSLCertificateChainFile /etc/ssl/STAR_aatech_co.ca-bundle
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin contactus@aatech.co
        ServerName billing.aatech.co
        ServerAlias *.billing.aatech.co
        DocumentRoot /opt/lampp/htdocs/billing/
        <Directory /opt/lampp/htdocs/billing/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/STAR_aatech_co.crt
SSLCertificateKeyFile /etc/ssl/aatech_co.key
SSLCertificateChainFile /etc/ssl/STAR_aatech_co.ca-bundle
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin contactus@aatech.co
        ServerName aatech.co
        ServerAlias *.aatech.co
        DocumentRoot /opt/lampp/htdocs/
        <Directory /opt/lampp/htdocs/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/STAR_aatech_co.crt
SSLCertificateKeyFile /etc/ssl/aatech_co.key
SSLCertificateChainFile /etc/ssl/STAR_aatech_co.ca-bundle
</VirtualHost>

<VirtualHost *:80>
        ServerName gnuforums.com
        ServerAlias www.gnuforums.com
        DocumentRoot /opt/lampp/forum/
        <Directory /opt/lampp/forum/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>
leptoon
 
Posts: 1
Joined: 23. October 2013 20:57
XAMPP Version: 5.5.19
Operating System: Ubuntu 12

Re: Problem with VirtualHosts

Postby Altrea » 24. October 2013 04:28

Try the "Require all granted" directive inside the not working Vhost Directory part.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6471
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests