Re: [resolved]'auto'rewrite link to a folder

2014-08-19 Thread Pascale Camille
up for me tuxlite or other script made me crazy -i could not modify script or nginx conf without crashing -as strange it is, i could not make php working ! so the last working solution for is a site that pre-build a script with my parameters : http://simpleserversetup.com/ but even with this, i h

Re: [resolved]'auto'rewrite link to a folder

2014-08-15 Thread Pascale Camille
thanks to all, 'perhaps' i solved my problem by adding in my DNS record: * CNAME 14440 2maxi.com and i used a script to create subdomain from tuxlite.com of course i'd preferred to understand what it did but no time to, site down for 4 monthes... -- Posted via http://www.ruby-forum.com/.

Re: 'auto'rewrite link to a folder

2014-08-15 Thread bodomic
I think your current config is too complicated now so that your regular expressions do not do what you think they should. Try a separate server setup in this manner: server { listen 80 default; server_name .example.com; set $project www; set $user www-data;

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Pascale Camille
yep you are rigth DNS declaration, so it become standard vhost... i wonder why it did work without A maybe it was not real subdomain : pointing a folder from a volatil url and rewriting this url permanetly... as my little experiment and http://publications.jbfavre.org/web/nginx-vhosts-automatique

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Francis Daly
On Thu, Aug 14, 2014 at 04:33:04PM +0200, Pascale Camille wrote: Hi there, > root@www:/# curl -H Host:one.2maxi.com http://localhost/ > content of /tmp/www/one/index.html > root@www:/# curl -H Host:nil.2maxi.com http://localhost/ > > 404 Not Found > > 404 Not Found > nginx/1.2.1 > > > root@ww

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Pascale Camille
hi, @bodomic, i just did again and remembered error, in webrowser it rewrote in loop: http://198.23.139.108//www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2maxi.com/www.2max

Re: 'auto'rewrite link to a folder

2014-08-14 Thread bodomic
Hi, you may find this overkill configuration helpful: http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.en Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252553,252577#msg-252577 ___ nginx mailing list

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Pascale Camille
yes i already read month ago but i can not make it work i wrote to the autor, no news :( -- Posted via http://www.ruby-forum.com/. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Pascale Camille
hi, thanks for mini lesson of batch command useful in futur. hum, i did what you wrote i rebuilded vps with debian 7 remove apache just fail to restart nginx editing nginx.conf so i put in /etc/nginx/sites-available/default and i am beat confused: root@www:/# curl -H Host:one.2maxi.com http://loc

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Francis Daly
On Thu, Aug 14, 2014 at 09:12:39AM +0200, Pascale Camille wrote: Hi there, > i confirmed it used to work greatly > i was working as teacher and needed subdomain easy > create or delete in one minute! > avoiding me to do subdomain process... > (no database site) I don't see how what you provided

Re: 'auto'rewrite link to a folder

2014-08-14 Thread Pascale Camille
hey! i confirmed it used to work greatly i was working as teacher and needed subdomain easy create or delete in one minute! avoiding me to do subdomain process... (no database site) maybe it need a custom module to be select/unselect at compilation of nginx... -- Posted via http://www.ruby-forum

Re: 'auto'rewrite link to a folder

2014-08-13 Thread Francis Daly
On Wed, Aug 13, 2014 at 10:43:24PM +0200, Pascale Camille wrote: Hi there, > my old vps debian6, nginx-1.2.6+php, used to work fast and perfectly > with /etc/nginx/host.d/main.conf : > return 301 http://~^(?.+)\.2maxi\.com$request_uri; Are you sure this used to work on the old server?

'auto'rewrite link to a folder

2014-08-13 Thread Pascale Camille
Hi all, i am looking for a 'simple rewrite rule' like typing : FOLDER.2maxi.com will point the folder /var/www/FOLDER/ and the folder is create by ngninx user, with winscp. my old vps debian6, nginx-1.2.6+php, used to work fast and perfectly with /etc/nginx/host.d/main.conf : ... server { liste