Learn about Centmin Mod LEMP Stack today
Become a Member

Laragon / Nginx Config

Discussion in 'Other Web Apps usage' started by Itworx4me, Feb 17, 2025.

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    1:03 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    I installed Laragon for testing on my computer. I tried adding friendly urls to the nginx config but it doesn't like it. Is the setup for friendly url different on localhost?


    Code (Text):
    #user  nobody;
    worker_processes  1;
    
    #error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;
    
    #pid        logs/nginx.pid;
    
    
    events {
        worker_connections  1024;
    }
    
    
    http {
        include       mime.types;
        default_type  application/octet-stream;
    
        #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        #                  '$status $body_bytes_sent "$http_referer" '
        #                  '"$http_user_agent" "$http_x_forwarded_for"';
    
        #access_log  logs/access.log  main;
    
        sendfile        on;
        #tcp_nopush     on;
    
        #keepalive_timeout  0;
        keepalive_timeout  65;
    
        #gzip  on;
        
        include "C:/laragon/etc/nginx/php_upstream.conf";
        include "C:/laragon/etc/nginx/sites-enabled/*.conf";
        client_max_body_size 2000M;
        server_names_hash_bucket_size 64;
        
        location / {
                index index.php index.html index.htm;
                try_files $uri $uri/ /index.php?$uri&$args;
            
            }
     
            location /install/data/ {
            internal;
            }
    
            location /install/templates/ {
            internal;
            }
    
            location /internal_data/ {
            internal;
            }
    
            location /library/ {
            internal;
            }
    
            # xenforo 2 uncomment / remove hash from next 3 lines
            location /src/ {
            internal;
            }
    }
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    6:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+