Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-09-07 04:25:18

schweidj
Member
Registered: 2016-05-14
Posts: 15

CentOS 7.5: You don´t have permission to access /backlight ...

Hi,

I tried to setup backlight + pages on a new centos installation (nethserver).

I did the following:

1. setup a virtualhost for backlight with the settings below
  <VirtualHost *:443>
    DocumentRoot "/var/lib/nethserver/vhost/fotovisionen"
    ServerName xxx
    # use php-fpm with mod_proxy_fcgi by socket
    # from Remi repository  instead of the default PHP
    <FilesMatch .php$>
     SetHandler "proxy:unix:/var/run/php70-php-fpm/fotovisionen-php70.sock|fcgi://localhost/"
    </FilesMatch>
    # 20forcessl_redirect enabled
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule (.*) https://%{SERVER_NAME}$1 [R,L]
    #
    #  20ssl_engine
    #
    SSLEngine on
    SSLCertificateFile xxx
    SSLCertificateKeyFile xxx
    SSLCertificateChainFile xxx
        #25IndexesOption
        <LocationMatch "^/">
            Options +Indexes
        </LocationMatch>
    # 30directory -- basic directory setup
    <Directory /var/lib/nethserver/vhost/fotovisionen>
      AllowOverride All
      Options None
      Options +Indexes
      Options +Includes
      <RequireAll>
        # access public
        Require all granted
        # authentication disabled
      </RequireAll>
    </Directory>
   </VirtualHost>

2. Unziped the contents of the downloaded zip-file directly to the www-root folder
3. set the permissions apache:apache recursively for all files and folders
4. set the backlight data dir world writable
5. .htaccess exists also in the web root folder
6. disabled selinux
7. nothing else copied to the document root folder and no files changed

I still get
"You don´t have permission to access /backlight on this server"

Error Log in the apache logfile:
80.187.114.212 - - [06/Sep/2018:21:24:16 +0200] "GET /backlight HTTP/1.1" 403 211 "-" "Mozilla/5.0 (iPad; CPU OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1"


Do you have any suggestions to solve this issue?

Best regards,
Joachim

Offline

#2 2018-09-07 06:11:02

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: CentOS 7.5: You don´t have permission to access /backlight ...

5. .htaccess exists also in the web root folder

Is this the .htaccess file from the zip file or another one?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2018-09-07 11:47:07

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: CentOS 7.5: You don´t have permission to access /backlight ...

I'm not sure that this would be the cause, but have you allowed index.php files to operate as index files?  The DirectoryIndex directive should allow this.

Offline

#4 2018-09-07 14:15:54

schweidj
Member
Registered: 2016-05-14
Posts: 15

Re: CentOS 7.5: You don´t have permission to access /backlight ...

Hi Daniel, hi Ben

thank you for the reply.

The reason was the line „Options none“. Apache seems to ignore the following option lines...

Thank you again.

Regards,
Joachim

Last edited by schweidj (2018-09-07 14:16:12)

Offline

Board footer

Powered by FluxBB