Apache conf file problem

Issues related to applications and software problems
Post Reply
Blisk
Posts: 243
Joined: 2011/07/04 14:49:51
Contact:

Apache conf file problem

Post by Blisk » 2017/09/26 17:47:36

I have a problem with apache conf file. And don't know what is wrong that apache can't find joomla folder
When I set in ssl.conf
DocumentRoot "/var/www/html/joomla"
I get error in log files
[error] [client 84.X.X.X] File does not exist: /var/www/html/joomla/joomla, referer: https://www.mydomain.com/
If I set this in ssl.conf
DocumentRoot "/var/www/html"
I get error
[error] [client 84.X.X.X] Directory index forbidden by Options directive: /var/www/html/

In /conf.d/mysite.conf I can set no matter what I get the same error.
<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot "/var/www/html/joomla"
ServerName www.mydomain.com
ServerAlias mydomain.com
ServerPath /var/www/html/joomla

mghe
Posts: 710
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: Apache conf file problem

Post by mghe » 2017/09/27 04:52:31

Error refer to '/var/www/html/joomla/joomla' and Your config point to '/var/www/html/joomla' check Your config ones again,

Permissions to /var/www/html/joomla ?
or extra config in htaccess ?

Try to disable other mod and run simply html file to test Apache.

Blisk
Posts: 243
Joined: 2011/07/04 14:49:51
Contact:

Re: Apache conf file problem

Post by Blisk » 2017/09/27 06:06:10

mghe wrote:Error refer to '/var/www/html/joomla/joomla' and Your config point to '/var/www/html/joomla' check Your config ones again,

Permissions to /var/www/html/joomla ?
or extra config in htaccess ?

Try to disable other mod and run simply html file to test Apache.

I have checked config 10 times and all looks ok.Permission for /var/www/html/joomla is ok problem is when i put in config /var/www/html
There is no httaccess file

If I put index.html in /var/www/html it works ok but can not point apache to find /var/www/html/joomla

Blisk
Posts: 243
Joined: 2011/07/04 14:49:51
Contact:

Re: Apache conf file problem

Post by Blisk » 2017/09/27 06:55:29

I found out that joomla.conf was not accepted by apache because the start of config file was with this, any idea why not?
I removed that and get notification [warn] _default_ VirtualHost overlap on port 443, the first has precedence
<IfModule mod_ssl.c>



</IfModule>

Blisk
Posts: 243
Joined: 2011/07/04 14:49:51
Contact:

Re: Apache conf file problem

Post by Blisk » 2017/09/27 07:10:26

I found out solution I added this to ssl.conf within virtual server

NameVirtualHost *:443

and now there is no errors anymore.

Post Reply