Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2012-05-08 14:53:37

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Adult Script Pro on NGINX

I've bought a new server for backups and i've tested Adult Script Pro on NGINX. Works perfectly! Here are the required rewrite rules:

server {
	listen *:80;
	server_name mygirlfriendporno.com;
	rewrite ^(.*) http://www.mygirlfriendporno.com$1 permanent;
}

server {
        listen *:80;
		server_name www.mygirlfriendporno.com;
		
        location / {
                root /home/gfporn/public_html;
                index index.php;

                # if file exists return it right away
                if (-f $request_filename) {
                        break;
                }

                # otherwise rewrite the fucker
                if (!-e $request_filename) {
                        rewrite ^(.+)$ /index.php?q=$1 last;
                        break;
                }

        }

        # if the request starts with our frontcontroller, pass it on to fastcgi
        location ~ \.php$ {
                include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param  SCRIPT_FILENAME  /home/gfporn/public_html$fastcgi_script_name;
                fastcgi_index index.php;
        }
}

I will also test FLV and H264 streaming tomorrow.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#2 2014-08-23 10:50:39

ful2fun.com
Member
From: GB
Registered: 2011-09-16
Posts: 1,040
Website

Re: Adult Script Pro on NGINX

where we need to put these rewrite code. In .htacces or vhost. As i am trying to nginx in new server with adultsearchscript

I have figured it out and made it  work but my admin panel is not loging in it refreshing page. And fornt end pags working fine but

Last edited by ful2fun.com (2014-08-23 11:21:28)

Offline

#3 2014-08-25 11:14:20

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Adult Script Pro on NGINX

Nginx does not have .htaccess. Everything needs to be put in the config file for nginx.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#4 2014-08-25 11:20:47

ful2fun.com
Member
From: GB
Registered: 2011-09-16
Posts: 1,040
Website

Re: Adult Script Pro on NGINX

nginx have rewrite option but i tried installed my server 15 times.As my old server got crashed due to apache and site is down and I got new server by hosting company. It works in Adultsearchscript but sources added not run. and full configuration was there. So I am waiting for new cpanel server again i order. Let install again and see.

Offline

#5 2014-08-26 06:22:55

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Adult Script Pro on NGINX

If the sources do not run, the problems can be:
1. Invalid php-cli path.
2. Debug is enabled.
3. Exec function disabled.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#6 2014-08-26 08:09:02

ful2fun.com
Member
From: GB
Registered: 2011-09-16
Posts: 1,040
Website

Re: Adult Script Pro on NGINX

its 2. Debug is enabled. by default in script.

Another reason is server issue. Server compatibility also matters. Server getting issues in installing and same on other server it worked flawlessly.

Offline

#7 2014-08-26 12:18:42

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Adult Script Pro on NGINX

Yeah, i know debug enabled by default. Will disable it in 1.0.13.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#8 2014-08-26 12:19:29

ful2fun.com
Member
From: GB
Registered: 2011-09-16
Posts: 1,040
Website

Re: Adult Script Pro on NGINX

1.012 Is launched? I have only 1.0.10...... lol

Offline

Board footer

Powered by FluxBB