Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Nginx rewrite config, revcms??
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bozzie" data-source="post: 360150" data-attributes="member: 3691"><p>Has anyone got a config file for revcms for nginx? i've tried using</p><p>"</p><p>worker_processes 2;</p><p>worker_rlimit_nofile 10000;</p><p>pid /var/run/nginx.pid;</p><p></p><p></p><p>events {</p><p>worker_connections 4000;</p><p>use epoll;</p><p>}</p><p></p><p></p><p>http {</p><p>include mime.types;</p><p>default_type application/octet-stream;</p><p>keepalive_timeout 65;</p><p>gzip on;</p><p></p><p></p><p>server {</p><p>listen MYVPSIP:80;</p><p>server_name MYVPSIP;</p><p>root /var/www/html;</p><p>index index.php index.html index.htm;</p><p></p><p></p><p>location / {</p><p>if (!-e $request_filename){</p><p>rewrite ^/(.*)(\.)(.*)$ /index.php?url=$1.$3 last;</p><p>}</p><p>}</p><p></p><p></p><p># use fastcgi for all php files</p><p>location ~ \.php$</p><p>{</p><p>fastcgi_pass 127.0.0.1:9000;</p><p>fastcgi_index index.php;</p><p>fastcgi_param REDIRECT_STATUS 200;</p><p>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p><p>include fastcgi_params;</p><p>}</p><p>}"</p><p>but have no look as when I goto localhost it's just <a href="https://forum.*****.com/redirect-to/?redirect=http%3A%2F%2Fprntscr.com%2F9ccp76" target="_blank">Screenshot by Lightshot</a> , thanks in advance.</p></blockquote><p></p>
[QUOTE="Bozzie, post: 360150, member: 3691"] Has anyone got a config file for revcms for nginx? i've tried using " worker_processes 2; worker_rlimit_nofile 10000; pid /var/run/nginx.pid; events { worker_connections 4000; use epoll; } http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; gzip on; server { listen MYVPSIP:80; server_name MYVPSIP; root /var/www/html; index index.php index.html index.htm; location / { if (!-e $request_filename){ rewrite ^/(.*)(\.)(.*)$ /index.php?url=$1.$3 last; } } # use fastcgi for all php files location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param REDIRECT_STATUS 200; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }" but have no look as when I goto localhost it's just [URL='https://forum.*****.com/redirect-to/?redirect=http%3A%2F%2Fprntscr.com%2F9ccp76']Screenshot by Lightshot[/URL] , thanks in advance. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Nginx rewrite config, revcms??
Top