Jump to content

corsairetc

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About corsairetc

  • Rank
    Newbie
  1. Hello I try configure mediawiki with nginx but I still getting 403 Forbidden, The nginx error log show this: *2 directory index of "/var/www/html/mediawiki/" is forbidden, client: 192.168.3.10, server: wiki.it.local, request: "GET / HTTP/1.1", host: "wiki.it.local" Here is my configuration file in /etc/nginx/sites-available/mediawiki whis is linked to /etc/nginx/sites-enbled: server { server_name wiki.it.local; root /var/www/html/mediawiki; client_max_body_size 5m; client_body_timeout 60; location / { try_files $uri $uri/ @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php?title=$1&$args; } location ^~ /maintenance/ { return 403; } location ~ \.php$ { include fastcgi_params; fastcgi_pass unix:/tmp/phpfpm.sock; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { try_files $uri /index.php; expires max; log_not_found off; } location = /_.gif { expires max; empty_gif; } location ^~ /cache/ { deny all; } location /dumps { root /var/www/html/mediawiki/local; autoindex on; } } The mediwiki file has index.php inside. Thank you for any help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.