Hi, I'm not sure what you did, but nginx.conf file, is only used to configure the http server, not vhosts. There is 2 ways to setup vhosts (called server blocs in NginX) : A. Use the default config file (usually located @ /etc/nginx/sites-available/default) and add all your vhosts there. The default file is self explanatory B. You can use a different file for every server bloc (vhost) by makingby shiroweb - Nginx Mailing List - English
Hi I can't access my domain after installing nginx and coinfigurong the default server conf file : # You may add here your # server { # ... # } # statements for each of your virtual hosts to this file ## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # http://wiki.nginx.org/Pitfalls #by shiroweb - Nginx Mailing List - English
Hello Daniel, I'm not sure to understand, sry, how do I setup a domain ? What would be the syntax for the file name ? domain.tld.conf ? Regards 2015-03-06 19:09 GMT+01:00 Theodoro <daniel.theodoro@gmail.com>: > Jack, > > There's no problem, or you can just add this line in your nginx.conf. > > include sites-enabled/*.conf; > > Daniel Theodoro > Cel: 11 99399-336by shiroweb - Nginx Mailing List - English
Hello, I used to use sites-available & sites-enabled in a previous version of NginX. I compiled it from source with ngx_pagespeed module on another VPS. I don't see anymore the folders available / enabled. On the other hand I noticed in /etc/nginx/nginx.conf this line : include conf.d/*.conf; I'm I supposed to store my domain configs in that folder ? Like /etc/nginx/conf.d/mydomain.tld.conf;by shiroweb - Nginx Mailing List - English
Ok, thanks ! 2015-02-14 23:37 GMT+01:00 Francis Daly <francis@daoine.org>: > On Sat, Feb 14, 2015 at 11:30:19PM +0100, JACK LINKERS wrote: > > Hi there, > > > Thanks for your input. What would be the best ways doing it then ? > > (I forgot to mention there is a large amount of URLs : +/- 20) > > A bunch of lines like > > location = /oldname.html { returby shiroweb - Nginx Mailing List - English
Hi Francis, Thanks for your input. What would be the best ways doing it then ? (I forgot to mention there is a large amount of URLs : +/- 20) Is this a good way ? : map $old $new { oldlink.html newlink.com oldink2.html newlink2.html } location $old { return 301 $scheme://$host$new; } If not, could you show me an example ? Thanks in advance 2015-02-14 23:22 GMT+01:00 Francis Daly <by shiroweb - Nginx Mailing List - English
Hello, I need to redirect some URLs after redesigning my website. I use a 301 redirect for HTTP to HTTPS protocole : if ($scheme = "http") { return 301 https://$server_name$request_uri; } But how do I redirect URLs that have been changed ? ie. https://mywebsite.com/oldname.html to https://mywebsite.com/newname.html I did try if ( $request_filename ~ oldname.html/ ) { rewritby shiroweb - Nginx Mailing List - English
Hi all, How can I restrict access to my website with a password like with a ..htaccess file please? Thanks _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby shiroweb - Nginx Mailing List - English
Hi guys, I fell in love with Nginx and want to use it on every server I'm setting up. What hosting admin panel would you recommend to use with Nginx ? I want to use Nginx as HTTP server insteads of Apache. Thanks _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby shiroweb - Nginx Mailing List - English
Hi guys, if ($scheme = "http") { return 301 https://$server_name$request_uri; } Did the job indeed ! Thanks again all for your time and patience ! All the best ! 2014-11-21 20:29 GMT+01:00 Francis Daly <francis@daoine.org>: > On Fri, Nov 21, 2014 at 09:02:01AM +0100, JACK LINKERS wrote: > > Hi there, > > > As you can see, the template doesn't make sepby shiroweb - Nginx Mailing List - English
Hi guys, This is not the first time I use this mailing list for support and it has always been very helpful. I might have forget to tell I'm using ISPConfig to setup my vhosts The .conf file is automaticaly generated, I only add some tuning to make different things work such as WordPress, PrestaShop, PageSpeed and so on. When I say i'm completely lost, I mean there is indeed plenty tutorials onby shiroweb - Nginx Mailing List - English
I completely lost... I tried everything (of my understanding) with no success. I didn't know you could include a condition with if and came across sites like : http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.fr This is way beyond my skills... I didn't managhe to enclose the 301 in if statements I think i'm gonna givin up 2014-11-20 10:27 GMT+01:00 JACK Lby shiroweb - Nginx Mailing List - English
Hi guys, Thanks for your fast reply and input. I didn't think of wordpress at all. I'll try some tuning and keep you posted. Thanks again Le 20 nov. 2014 09:52, "B.R." <reallfqq-nginx@yahoo.fr> a écrit : > On Thursday, November 20, 2014, JACK LINKERS <jacklinkers@gmail.com> >> wrote: >> >>> rewrite ^ https://$server_name$request_uri? permaneby shiroweb - Nginx Mailing List - English
Hello, I try to force SSL redirect on my website, but I'm getting a ERR_TOO_MANY_REDIRECTS. I can't figure what's wrong, here is my vhost .conf file : server { listen *:80; listen *:443 ssl; ssl on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate /var/www/clients/client2/web1/ssl/domain.tld.crt; ssl_certificate_key /var/www/clients/client2/web1/ssl/domain.tld.key; # Disablesby shiroweb - Nginx Mailing List - English
SOLVED thanksby shiroweb - How to...
Hello, I followed an excellent tutorial on how to compile nginx with ngx_pagespeed @ http://www.howtoforge.com/using-ngx_pagespeed-with-nginx-on-debian-jessie-testing I wanted to know if ngx_http_rewrite_module is auto added with source compilation ? If not, do I have to add it like --with-ngx_http_rewrite_module or any other instruction while editing rules file ? Because URLs are not reby shiroweb - How to...
> > Hello there, > > Does anybody can check my .conf files and maybe comment suggest good ones > for prestashop please ? > > Attached you'll find my domain .conf && my nginx.conf files > > Thanks in advance for time / help ! > > > user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } httby shiroweb - Nginx Mailing List - English
Hi Josh, Yes, indeed I see inside /usr/local/nginx : client_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp But I don't understand what is the default.vhost file in it. If I change : include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; by : /usr/local/nginx/conf/*.conf; /usr/local/nginx/html/*; I get this message : nginx: "worker_prby shiroweb - Nginx Mailing List - English
Hello, I'm new to linux and webservers, but I have a brain and C# background. I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following this tutorial : https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source I installed everything under root directory, successfully builded the package and started nginx : root@xxxxx:~# service nginx configtest nginx: theby shiroweb - Nginx Mailing List - English
Hello, I'm new to linux and webservers, but I have C# background. I wanted to move from Apache to Nginx, I had mod_pagespeed working great so I wanted to add the same with Nginx. I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following this tutorial : https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source I installed everything under root directoryby shiroweb - Migration from Other Servers