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-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 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 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

full main.conf

2014-08-14 Thread Pascale Camille
server { listen 80; charsetutf-8; source_charset utf-8; server_name www.2maxi.com; root /var/www/www; index 2maxi.com.html index.php; error_page 405 /405.html; location = /405.html { rewrite . http://www.2maxi.com/2maxi.com.gif redirect; allow all; } error_page 4

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: Cannot create directory alias (with php pages)

2014-08-13 Thread Pascale Camille
hi! if it can help i just get a 'redirection cycle' error in a *.conf ... return 301 http:// ... but my problem was solved because i found in etc/nginx some default.conf that made cycling check all etc/nginx/ -- Posted via http://www.ruby-forum.com/.

'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