[NGINX] How do you hide .git project directories?
Now that I have nginx setup I need to be able to hide my .git directories. What kind of rewrite would I need to stop prying eyes? And where in the server {} or http {} block would it go? ...
Now that I have nginx setup I need to be able to hide my .git directories. What kind of rewrite would I need to stop prying eyes? And where in the server {} or http {} block would it go? ...
I have a node in cloud environment which is used now as nginx and mongrels behind it. This is what nginx config looks like: upstream mongrel { server 127.0.0.1:8000; server 127.0.0.1:8001; server 127.0.0.1:8002; } I want to achieve the following: add another node nginx has to know about this new node automatically witho...
I'm trying to translate: mydomain.com/98387634/image/file.png to: mydomain.com/image/file.png Can anyone tell me what's wrong with my rewrite? rewrite ^~/static/(.*)/(.*)$ ~/static/$2 last; location ^~/static { expires max; root /var/www; } ...
I want to run several fastcgi processes with different users and different php.ini . But unfortunately I found information about running one process only. http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-9.04 There is mod suexec for Apache which allows to do it. Does anyone know something like that for f...
So I want to be able to cap:deploy without having to type any passwords. I have setup all private keys so I can get to the remote servers fine, and am now using svn over ssh, so no passwords there. I have one last problem, I need to be able to restart nginx. Right now I have sudo /etc/init.d/nginx reload. That is a problem b/c it uses ...
I have an Rails application server that is listening on port 9000, and is being called through haproxy. All my redirects from that server are being redirected back through port 9000, when they should be sent back on port 80. I am using a combination of haproxy + nginx + passenger. Is there a way to make sure all redirects are being sent...
I really like nginx. But recently I've found that varnish gives you an opportunity to implement smart caching revers proxy layer(with URL purging). I have a cluster of mongrels which are pretty resource-intensive so if this caching layer can remove some load from mongrels this can be a great thing. I didn't find a way to implement the ...
Hey there. I am very unfamiliar with nginx, as a forewarning, and also can't find any actual references on the regex system they use. So right now it's a black box to me. All I want to do is redirect a user trying to go to www.mydomain.com/mydirectory/X to www.myotherdomain.com/X . Seems like I should be using the rewrite command but ...
Hello everybody, I've just made an upgrade and now partly thinking on web-server directory structure for local workstation for web-development on linux platform. Running multiple hosts and different projects required. Where is it better to put all the server's docroots? /var/www? /srv? /www? I plan to make it as separate partition - cou...
Primary goal is to learn from a popular web server codebase (implemented in C) with priority given to structure/design instead of neat tricks throughout the code. I didn't include Apache since its code base is an order of magnitude larger than the two mentioned. ...
I've started getting a really strange error on a server of mine and I've no idea how to fix it. The basic setup is a Wordpress (not v3, the previous stable release) site on PHP-FPM + APC on nginx on Ubuntu Lucid. For five or so minutes at a time, some pages will just return straight out, blank page, no content. I'll wait for a bit, try ...
Hi, i have searched for this around the web and i can't find the right answer for my question. basically i want to know if i can get better performance with nginx than with apache (in php apps), and i'm not involving static content (where i know nginx is better). the sites are a widely collection of scripts with a lot of variables, us...
hi, please help me to convert this lighttpd rewrite expression to nginx "^/static/(.*)" => "/static/$1", "^/super/(.*\.html)(?:\?(.*))?" => "/yatasha_super.cgi?$2", "^/(.*\.html)(?:\?(.*))?" => "/yatasha.cgi?$2" i try to do like this rewrite ^/static/(.*) /static/$1 rewrite ^/super/(.*\.html)(?:\?(.*))? /yatasha_super.cgi?$2 rewrite ...
Dear all I wish to use nginx with gzip compression on ubuntu 64bit. I have set up nginx by command sudo apt-get install nginx And it doesn't work. Does any one know how to install nginx with Ubuntu 64bit? Please advise. Best regards, LeeJava ...
When you execute an action on my application (only one action) the browser will just sit there not doing anything, when i check my production.log i see the request (about 2 minutes after i go to the address) but i see no errors or problems, while the browser never stops "Loading". I checked my NGINX server logs, and didn't find anything,...
How can I write an nginx rewrite that will redirect traffic sent to the root of a site but not sent to paths below root? In other words: I want to rewrite any request to http://foo.bar.com to redirect to http://foobar.com But any request for http://foo.bar.com/baz should go ahead and go there. The below redirects any request to foo.b...
I've got nginx installed on Ubuntu from the repository (v0.7.65), and while with my default site configuration works wonders with WordPress pretty URLs and nginx-compatibility plugin (so far), it doesn't with Joomla!. I got it to show me the index, the administrator, and one level below links. That is, if I access http://localhost/jooml...
Im trying to display the error page in /temp/www/error403.html whenever a 403 error occurs. This should be whenever a user tries to access the site via https (ssl) and it's IP is in the blovkips.conf file, but at the moment it still shows nginx's default error page. I have the same code for my other server (without any blocking) and it ...
What regex would I use to deny every URL using "?": Ex. domain.com/? and domain.com/?p=1224 location (need regex){ deny all; } ...
Are there any special options to compile nginx for Intel Atom CPU ? I saw an option called --with-cpu-opt the possible values are : pentium, pentiumpro, pentium3, pentium4, athlon, opteron, sparc32, sparc64, ppc64, but I don't see Intel Atom here ...