Re: [web2py] subdomain for testing

2015-07-29 Thread BlueShadow
I looked at the deployment script in detail. But I can't figure out how you 
could do it.
I tried adding server blocks in the sites enabled folder in nginx like this:

server {
listen  80;
server_name www.myexamplew2papp.com 
http://www.google.com/url?q=http%3A%2F%2Fwww.myexamplew2papp.comsa=Dsntz=1usg=AFQjCNGJfTu-OEbGD9pJTlkO7cQdwBNtNA
;
###to enable correct use of response.static_version
location ~* ^/(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$ {
alias /home/www-data/web2py/applications/$1/static/$2;
expires max;
### if you want to use pre-gzipped static files (recommended)
### check scripts/zip_static_files.py and remove the comments
# include /etc/nginx/conf.d/web2py/gzip_static.conf;
}
###


###if you use something like myapp = dict(languages=[en, it, jp], 
default_language=en) in your routes.py
#location ~* ^/(\w+)/(en|it|jp)/static/(.*)$ {
#alias /home/www-data/web2py/applications/$1/;
#try_files static/$2/$3 static/$3 =404;
#}
###


location / {
#uwsgi_pass  127.0.0.1:9001;
uwsgi_pass  unix:///tmp/web2py.socket;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWAREnginx/$nginx_version;


###remove the comments to turn on if you want gzip compression 
of your pages
# include /etc/nginx/conf.d/web2py/gzip.conf;
### end gzip section


### remove the comments if you use uploads (max 10 MB)
#client_max_body_size 10m;
###
}
}




server {
listen  80;
server_namewww.myexamplew2papp.com/wpblog;
index index.htm;
root /home/www-data/subdomain/html;
index index.php index.html index.htm;
location / {
# try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?q=$uri$args;
}


error_page 404 /404.html;


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


location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;

}
}

but I just get the web2py 404 page not found site fromm my app.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] subdomain for testing

2015-07-28 Thread Richard Vézina
Which server do you use? Apache, nginx? Basically you need to exclude
wpblog from the route to your web2py app this is done in the config of your
webserver... You can have a look at this web2py deployment script contrib :
https://github.com/web2py/web2py/blob/master/scripts/setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh
line 333

Direct link :
https://github.com/web2py/web2py/blob/master/scripts/setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh#L333

It regular expression, it should be similar with apache...

Richard




On Tue, Jul 28, 2015 at 1:09 PM, BlueShadow kevin.bet...@gmail.com wrote:

 hi,
 I have a web2py app on www.myexamplew2papp.com which runs perfectly. Now
 I want to create a subpage for testing which is not web2py but wordpress.
 this wordpressblog should be located here: www.myexamplew2papp.com/wpblog.
 Does onyone know how I do that?
 thanks

 --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to the Google Groups
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] subdomain for testing

2015-07-28 Thread BlueShadow
I'm using nginx

On Tuesday, July 28, 2015 at 7:50:41 PM UTC+2, Richard wrote:

 Which server do you use? Apache, nginx? Basically you need to exclude 
 wpblog from the route to your web2py app this is done in the config of your 
 webserver... You can have a look at this web2py deployment script contrib : 
 https://github.com/web2py/web2py/blob/master/scripts/setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh
  
 https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fweb2py%2Fweb2py%2Fblob%2Fmaster%2Fscripts%2Fsetup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.shsa=Dsntz=1usg=AFQjCNGsF8K3PQzXtfgUtk07H49dvH9xrQ
  
 line 333

 Direct link :

 https://github.com/web2py/web2py/blob/master/scripts/setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh#L333

 It regular expression, it should be similar with apache...

 Richard




 On Tue, Jul 28, 2015 at 1:09 PM, BlueShadow kevin@gmail.com 
 javascript: wrote:

 hi,
 I have a web2py app on www.myexamplew2papp.com which runs perfectly. Now 
 I want to create a subpage for testing which is not web2py but wordpress. 
 this wordpressblog should be located here: www.myexamplew2papp.com/wpblog
 .
 Does onyone know how I do that?
 thanks

 -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 --- 
 You received this message because you are subscribed to the Google Groups 
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to web2py+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.