Do I need to allow access to index.php Topic is solved

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
webdevtim
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Sun May 28, 2017 4:37 am

Do I need to allow access to index.php

Post by webdevtim » Fri Dec 07, 2018 4:56 am

I get the following errors:

Code: Select all

[Thu Dec 06 21:30:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 21:30:01 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 21:45:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 21:45:01 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:00:01 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:00:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:15:01 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:15:02 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:28:32 2018] [error] [client 157.55.39.205] File does not exist: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/templates/my-template/css/template.css
[Thu Dec 06 22:30:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:30:02 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:45:01 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 22:45:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 23:00:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 23:00:01 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 23:15:01 2018] [error] [client 2607:1b00:93b2:e42c::477a] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
[Thu Dec 06 23:15:02 2018] [error] [client 2607:1b00:93b2:e42c::810] client denied by server configuration: /mnt/data/vhosts/casite-xxxxxx.cloudaccess.net/httpdocs/index.php
I can access the site without issue, I don't want to set an exception in htaccess for index.php. Yet I don't like errors.

I also changed the name of template.css and changed the references to that in index.php, so I am not sure where this call to tamplate.css. Look like the client is not from this website.

Here is the relevant htaccess:

Code: Select all

## Explicitly allow access to the site's index.php main entry point file
RewriteRule ^index.php(/.*){0,1}$ - [L]
## Explicitly allow access to the site's robots.txt file
RewriteRule ^robots.txt$ - [L]

## Disallow access to all other PHP files throughout the site, unless they are explicitly allowed
RewriteCond %{REQUEST_FILENAME} (\.php)$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule (.*\.php)$ - [F]
## Disallow access to htaccess.txt, php.ini, .user.ini and configuration.php-dist
RewriteRule ^(htaccess\.txt|configuration\.php-dist|php\.ini|\.user\.ini)$ - [F]
# Disallow access to all other front-end folders
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !^/
RewriteRule .* - [F]

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4034
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Do I need to allow access to index.php

Post by AMurray » Fri Dec 07, 2018 9:33 am

Please run and post the FPA report results.
viewtopic.php?f=714&t=793531

In a default install you shouldn't need to do anything, the permissions should be as they need to be already.

I don't think it's a Joomla issue - the error stating "denied by server configuration" means it's a server config issue; - I would talk to your host about fixing it.

Try replacing that htaccess with the Joomla default one. I would also change the template.css back to what it was - you don't need to be messing with file names like that.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

webdevtim
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Sun May 28, 2017 4:37 am

Re: Do I need to allow access to index.php

Post by webdevtim » Sat Dec 08, 2018 5:25 am

Thanks, I created a really agressive .htaccess file and I believe the problem was the '.' wasn't escaped with a '\' in:

Code: Select all

## Explicitly allow access to the site's index.php main entry point file
RewriteRule ^index\.php(/.*){0,1}$ - [L]
## Explicitly allow access to the site's robots.txt file
RewriteRule ^robots\.txt$ - [L]
This was

Code: Select all

## Explicitly allow access to the site's index.php main entry point file
RewriteRule ^index.php(/.*){0,1}$ - [L]
## Explicitly allow access to the site's robots.txt file
RewriteRule ^robots.txt$ - [L]
Before I edited it.


Post Reply

Return to “Administration Joomla! 3.x”