I'm getting 403 error using passenger for rails in apache

后端 未结 4 1105
花落未央
花落未央 2021-02-08 12:31

I\'ve already installed the needed tools, and followed several tutorials trying to make passenger respond.

I can access static files in public folder (public/500.html or

4条回答
  •  孤独总比滥情好
    2021-02-08 12:40

    I also got an 403 error using passenger for rails in apache on my Mac OS 10.9 (an Unix-like system). Here's some tips:

    1. You can check apache log directory and see the what happened. The directory: /var/log/apache2/error_log.
    2. Issue: Permission denied: access to / denied ( filesystem path 'path_apache_access' ) because search permissions are missing on a component of the path.

      Check 'path_apache_access' by CLI: ls -ld 'path_apache_access' and use chmod +x to change the path privilege.

      Also, note this: Httpd Wiki - (13) Permission Denied-.

    3. Issue: configuration error: couldn't perform authentication. AuthType not set!.

      Issue: client denied by server configuration.

      Go to /etc/apache2/httpd.conf and take a look on tag.

      Check apache version by CLI: apachectl -v, if Apache < 2.4, do NOT uncomment "Require all granted".

      
            # This relaxes Apache security settings.
            AllowOverride all
            # MultiViews must be turned off.
            Options -MultiViews
            # Uncomment this if you're on Apache >= 2.4:
            # Require all granted
            Options FollowSymLinks
            Order allow,deny
            Allow from all
      
      

提交回复
热议问题