0
votes
0answers
21 views

Make nginx config like apache2

I have web server with apache2 with many subdomains on it like, domain.com, abc.domain.com, def.domain.com etc. etc. Now I got a new nginx server and want to set it up like apache2, so to test I ...
16
votes
2answers
1k views

Why does the percent sign in a URL cause an HTTP 400 Bad Request error?

I stumbled upon this by accident when mistyping the URL for a web page in my web browser. Why does visiting http://example.com/% cause an HTTP 400 Bad Request error to be thrown? Is the server ...
0
votes
0answers
19 views

Minimal nginx configuration for localhost?

I need to serve myself a few static HTML documents for test purposes (playing around with Mozilla addon development, need certain content to develop against). I thought I can just install a small ...
0
votes
0answers
15 views

Ideal location for storing project files in Linux servers

Since using Linux/CentOs servers, I have read numerous blogs about suggesting where to actually place the public project folders. Nginx seems to suggest the html pages should be placed in: ...
1
vote
1answer
121 views

How to make Nginx virtual host work? (page not found)

Running Ubuntu 13.10 in VirtualBox. I've put my website in this folder: http://i.stack.imgur.com/YYhcJ.jpg And created the log folder on /srv/www/streamsy.com/logs/. I've done these steps: sudo ...
0
votes
0answers
69 views

Accessing virtual machine server from the internet

I am currently trying to set up my own server at home. I don't have a lot of hardware so I installed a Linux virtual machine using VirtualBox on a Windows 7. It runs Arch Linux as an OS and Nginx for ...
0
votes
1answer
21 views

Disallow access to Sonatype Nexus & Webmin?

I have a VPS running my family's business website and my personal development site. I have Sonatype Nexus, Jenkins, Webmin etc installed for me. They'll never use it for the business. I don't want a ...
2
votes
0answers
75 views

Url rewriting faliure in case of UTF8 urls in nginx

I am using Nginx webserver and I want to rewrite some old urls on my site to new ones inorder to prevent 404 errors. For English urls everything is OK and adding a rewrite rule like the following to ...
0
votes
0answers
75 views

Can client web browser utilize keep-alive configuration of nginx image server

I have an image-providing nginx web server (without apache). I'm considering to turn keep-alive on of nginx. But, I'm not sure how many tcp connections will be reused. Normally, a user see many ...
0
votes
1answer
48 views

How to return/simulate error 102 from nginx?

Is it possible to return for a specific domain an error, like if the server (nginx) would not work?
1
vote
0answers
1k views

Can't stop/reload/restart nginx with “service nginx”-command

I installed nginx via passenger for running ruby on rails applications. I added the this script: RedHat Nginx Init Script Changed paths for nginx and config to where they are located: ...
0
votes
0answers
549 views

Configuring phpmyadmin.site.com subdomain with nginx

I have a Rails site being served by nginx. I want to also have phpmyadmin for the same data. My phpmyadmin is installed in /use/share/phpMyAdmin I wrote this in in my nginx.conf file: server { ...
1
vote
2answers
363 views

Renaming Nginx 1.3.5 Server: response header

In nginx 1.2 & 1.3 you can modify the source to change the name: src/http/ngx_http_header_filter_module.c (lines 48 and 49): static char ngx_http_server_string[] = "Server: Not Nginx" CRLF; ...
0
votes
2answers
1k views

Cannot access my website from outside my localhost

I have test website on my system (MacBook Pro with Mac OSX Lion). The website is served by nginx listening on port 8000. The listen configuration is listen 8000 default, so it should be open to accept ...
2
votes
2answers
90 views

Should web servers be run by a special user?

I'm pretty beginner-level at Linux, and one thing I've always wondered was whether things like Nginx / uWSGI (for a Django project) should be run under a user that was created for that purpose, or ...
7
votes
1answer
9k views

Nginx: Serve static files out of a given directory - one level too deep

I'm pretty new to nginx configs. I'm having some difficulty with a pretty basic problem. I'd like to host some static files at /doc (index.html, some images, etc). The files are located in a directory ...
1
vote
1answer
187 views

What is the difference between using `root /dir/name` and `alias /dir/name` in nginx?

It seems like root and alias do the same things by definition, but for some reason when I use root, I get a 404, but it works fine when I use alias. Any ideas?
1
vote
1answer
200 views

Passenger + Nginx performance drops very quickly…?

So I have an Amazon EC2 small instance setup on Ubuntu with Ruby Enterprise Edition running on Passenger + Nginx. I set 25 Passenger instances and performance is dropping very quickly relative to the ...