Results 1 to 4 of 4

Thread: intall 4.9 with nginx page not found

  1. #1
    New user
    Join Date
    03-07-18.
    Posts
    3

    Default intall 4.9 with nginx page not found

    Hi,

    I download contao-manager.phar and upload to /mnt/web

    change contao-manager.phar to contao-manager.phar.php

    open url from brower http://localhost/contao-manager.phar.php

    and show me 404 page not found

    and I create a info.php in web folder, it works fine

    Ngnix version is nginx/1.13.2

    is Nginx need to do some special configuration?

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Post your current nginx config.

  3. #3
    New user
    Join Date
    03-07-18.
    Posts
    3

    Default

    Quote Originally Posted by Spooky View Post
    Post your current nginx config.
    server {
    listen 80;
    server_name localhost;

    set $current_root /var/www/html/contao4/web;
    charset utf-8;
    root $current_root;

    location / {
    index index.php;
    if (!-e $request_filename){
    rewrite ^(.*)$ /index.php?s=$1 last; break;
    }
    }

    location ~ \.php$ {
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 32 32k;
    include fastcgi_params;
    fastcgi_index index.php;
    fastcgi_pass 127.0.0.1:9000;
    }

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root /var/nginx/html;
    }
    }

  4. #4
    New user
    Join Date
    03-07-18.
    Posts
    3

    Default

    Quote Originally Posted by Spooky View Post
    Post your current nginx config.
    I create a new clean folder, and the root folder I change to /var/www/html/contao4/web

    and it still show me page not found

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •