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 2014-08-02 19:32:54

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

V1.0.10 Mobile Redirect

So i sat up my domain as m.pussylove.in and that works without problems.
If i access pussylove.in via mobile phone the script does redirect but it seems that it misses the correct url for the templates and so on.
I added 'mobile_url' => 'http://m.pussylove.in' to config.php

I changed the Nginx.conf and added this:

#############################################Mobile

server {
	listen *:80;
	#listen [::]:80 default_server ipv6only=on;

	root /usr/share/nginx/html/mobile;
	index index.php;
	client_max_body_size 900M;
	# Make site accessible from http://localhost/
	server_name m.pussylove.in;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		#try_files $uri $uri/ =404;
		try_files $uri $uri/ /index.php?q=$uri&$args;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules;
	}

	#error_page 404 /404.html;

	# redirect server error pages to the static page /50x.html
	#
	#error_page 500 502 503 504 /50x.html;
	#location = /50x.html {
	#	root /usr/share/nginx/html;
	#}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
	#	# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
	#
	#	# With php5-cgi alone:
	#	fastcgi_pass 127.0.0.1:9000;
	#	# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		#fastcgi_index index.php;
		include fastcgi_params;
		fastcgi_read_timeout 600;
		}
#############################################
location ~ \.flv$ {
        secure_link $arg_st,$arg_e;
        secure_link_md5 bla$uri$arg_e$remote_addr;

        if ($secure_link = "") {
            return 403;
        }

    	if ($secure_link = "0") {
            return 403;
        }

        flv;
    }

    location ~ \.mp4$ {
        secure_link $arg_st,$arg_e;
        secure_link_md5 bla$uri$arg_e$remote_addr;

        if ($secure_link = "") {
            return 403;
        }

        if ($secure_link = "0") {
            return 403;
        }

        mp4;
        mp4_buffer_size     1m;
        mp4_max_buffer_size 5m;
    }
#############################################
	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /\.ht {
	#	deny all;
	#}
}

So: Accessing m.pussylove.in works
Accessing pussylove.in does not work

both via Android Mobile.


sgt-halfsize-banner.jpg

Offline

#2 2014-08-03 07:23:34

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

Re: V1.0.10 Mobile Redirect

Yeah...in 1.0.10 from a mobile phone you cannot see the desktop version. Will add this feature in 1.0.11.


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

Offline

#3 2014-09-02 22:45:38

Jacob
Member
Registered: 2014-05-15
Posts: 193

Re: V1.0.10 Mobile Redirect

Sorry to hi-jack the thread but was this added in 1.0.11 Symtab?

Offline

#4 2014-09-03 06:57:12

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

Re: V1.0.10 Mobile Redirect

Yes, if you use m.domain.com and domain.com for desktop, you can have links to mobile and desktop versions.


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

Offline

Board footer

Powered by FluxBB