Apache problem - 2 domains

1

Good afternoon ...

I'm trying to set up 2 domains on 1 server: _Debian Linux _Apache2

I created the following file: pclinx.conf, then applied a2ensite, icou enabled and restarted apache2.

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.pclinx.com.br
ServerAlias *.pclinx.com.br
DocumentRoot /var/www/html/pclinx


<Directory />
   Options FollowSymLinks Indexes
   AllowOverride AuthConfig
</Directory>
<Directory /var/www/html/pclinx>
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
   Order allow,deny
   Allow from all
</Directory>
</VirtualHost>

In / var / www / html / pclinx has an index.html file .... but I can not see the index.

Website: www.pclinx.com.br

Can you help me please?

    
asked by anonymous 17.04.2017 / 22:30

2 answers

0
  

You can then try VirtualHost to put the Server IP, access the Apache2 log in / var / log / to see what error occurs.

<VirtualHost IP_DO_SERVIDOR:80>
ServerAdmin webmaster@localhost
ServerName www.pclinx.com.br
ServerAlias *.pclinx.com.br
DocumentRoot /var/www/html/pclinx


<Directory />
   Options FollowSymLinks Indexes
   AllowOverride AuthConfig
</Directory>
<Directory /var/www/html/pclinx>
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
   Order allow,deny
   Allow from all
</Directory>
</VirtualHost>
  

If you need a hosting manager use the ISPConfig3 script to install on Ubuntu: link

    
08.06.2017 / 08:40
0

I just set up here to simulate your problem. I did it this way:

<VirtualHost *:80>
    DocumentRoot /var/www/html/pclinx/
    DirectoryIndex index.html index.php
    ServerName www.pclinx.com.br
        <Directory /var/www/html/pclinx/>
        Options Indexes FollowSymLinks MultiView
        AllowOverride all
        Order allow,deny
        allow from all
        </Directory>
</VirtualHost>

I suggest you delete what you tried and for this instead. If you can not get it to work, post here the last lines of your apache log.

Do not forget to restart apache after making the change.

    
04.07.2017 / 10:10