Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden nginx/1.18.0 (Ubuntu) #101

Open
FractiekamerSplinter opened this issue Feb 12, 2023 · 1 comment
Open

403 Forbidden nginx/1.18.0 (Ubuntu) #101

FractiekamerSplinter opened this issue Feb 12, 2023 · 1 comment

Comments

@FractiekamerSplinter
Copy link

Hi, I have installed Decidim on Ubuntu 22.04, using your script. The install went fine, but when I try to reach my domain in the browser I get a '403 Forbidden' mention.

Using Ruby 3.0.5
SSL certificate installed
Passenger 6.0.17
OpenSSL 3.0

When I look in the errog in Nginx I see the following error:
"/home/decidim/decidim-app/public/index.html" is forbidden (13: Permission denied),

This is my decidim.conf file in sites-enabled in /etc/nginx

server {
listen 80;
listen [::]:80 ipv6only=on;
listen 443 ssl;
ssl on;
ssl_certificate /etc/nginx/ssl/bundle_xxxxxx.crt;
ssl_certificate_key /etc/nginx/ssl/xxxxx_nl.key;
server_name www.xxxxxx.nl. xxxxxxx.nl;
client_max_body_size 32M;
root /home/decidim/decidim-app/public;

passenger_enabled on;
passenger_ruby /home/decidim/.rbenv/shims/ruby;

rails_env    production;

location / {
autoindex on;
}

}


nginx-t says config is ok.

What could be the problem?

@richardheise
Copy link

richardheise commented Sep 11, 2023

I'm having the same issue which I "fixed" by setting

index 422.html; location / { try_files $uri $uri/ = 404 }

But then I get another error message from the platform:

"
The change you wanted was rejected.

Maybe you tried to change something you didn't have access to.

If you are the application owner check the logs for more information.
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants