• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NginX

fredde3436

Member
Joined
Jul 6, 2009
Messages
226
Reaction score
7
Does anyone have a tutorial on how to setup a AAC with nginx?
I've searched a bit but cannot find anything :(

Its for windows.
 
Solution
It depends. Znote or Gesior? for Znote is kinda easy, you just need to pass PHP to fastcgi, on Gesior you need to get the php from the subtopic and pass it to fastcgi

Code:
server {
        listen   80;
    

        root /usr/share/nginx/www;
        index index.php index.html index.htm;

        server_name example.com;

        location / {
                try_files $uri $uri/ /index.html;
        }

        error_page 404 /404.html;

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

        # pass the PHP scripts to FastCGI server listening on the php-fpm socket
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass...
It depends. Znote or Gesior? for Znote is kinda easy, you just need to pass PHP to fastcgi, on Gesior you need to get the php from the subtopic and pass it to fastcgi

Code:
server {
        listen   80;
    

        root /usr/share/nginx/www;
        index index.php index.html index.htm;

        server_name example.com;

        location / {
                try_files $uri $uri/ /index.html;
        }

        error_page 404 /404.html;

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

        # pass the PHP scripts to FastCGI server listening on the php-fpm socket
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
               
        }

}

This is the example from nginx, you might need to tune it to your needs
 
Solution
geeez, im here like thinking what happened to xampp...

Im not really good at this, but do i need a seperate database or what?
Btw, i have no idea what the fuck i just read in your post :D
 
XAMPP should only be used to local development. The 98% of the community doesnt know that sadly.

You install MySQL on your machine and PHP and nginx, so no, you dont need a separate database.
 
Back
Top