Problem 2 Apache domains

-1

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

Create the following file: pclinx.conf, then enable with a2ensite, so that it is enabled and then restart 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 is the index.html file .... but I do not know why I can not visualize anything, you can not see the index.html.

In / etc / hosts 127.0.0.1 www.pclinx.com.br

Website: www.pclinx.com.br

    
asked by Rodrigo Hackz Exploitz 19.04.2017 в 23:28
source

1 answer

0

When you do the get of the website, for example:

curl http://www.pclinx.com.br/index.html 

Go and check the

tail /var/log/apache2/access.log 

that you have the order. You MUST be there, if there is no line with your order, it is that you do not reach the web server.

If it is not an order with code 200 (OK) then you will also have the error registered in

tail /var/log/apache2/error.log 

and there you will have an explanation.

I would be inclined to a problem of permissions or that the apache is not serving the correct page.

    
answered by 09.05.2017 / 16:34
source