I want to host a website. Is there any stable alternative to Apache?
Nginx?
nope, every single website on the internet either runs apache or is unstable as fuck.
http://www.fefe.de/gatling/
>>52140650
- NGinx
- lighttpd
- Cherokee
- hiawatha
>>52140704
welcome to 2003
>>52140650
IIS is the most secure and stable. Use IIS.
>>52140797
>>52140650
nginx
>>52140794
niceme.me
>What is django
>What is nginx
>What is build it yourself
>>52140825
Is there any guide to hosting a django site through Nginx? What if I want to host static files on a different server?
Appreciate your input.
>>52140864
there should be tutorials for django with nginx
you can configure nginx to use a totally different setup for another domain or server
you can route traffic (based on URL, domain, whatever) through another nginx or apache server with "passthrough" or (reverse) proxy option
>>52140650
Apache is good and the fuck tons of modules make it the most versatile web server. Nginx is also a choice, in some areas faster but not as mature.
>>52140864
run django module with uwsgi or gunicornlocation / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_redirect off;
proxy_connect_timeout 60;
proxy_read_timeout 60;
#proxy_pass http://django; # Socket for uWSGI
proxy_pass http://127.0.0.1:8000;
}
>>52140949
>>52140825
Faggots, nginx is for static files only. You can't magically "configure nginx with django". They are unrelated as fuck. You need a WSGI server for Django and then configure that WSGI server to work with nginx.
Take a look at gunicorn.
>>52140794
>windows
>to host a WEBSITE
>>52140650
nginx for lightweight
apache for bulky enterprise size/grade bloated shit
>>52141572
nitpicking
>>52141594
Tell that to universities.
>>52140650
run nginx on the frontend for static assets
set up a rule for php files and then forward that to another server running apache and mod_php
>>52141608
Of course, it's 4chan.
>>52140650
nginx is preffered by most autismos because its "more secure" and has less useless features. I personally keep to apache though since resource usage isn't really an issue to me and its what I'm familiar with.
OP here.
I'm looking at the options @ https://shop.networkpresence.com.au/cart.php?gid=9 and I'm not sure which would be appropriate. Any tips or advice?
>>52142015
It doesn't highlight which one gid=9 is, but fuck off with that shit. Overpriced shit. If its just going to be a small site, you're better off buying a vps with digitalocean. I use them for a few of my project, and you pay by the hour so if you want to cancel in the middle of the month you can.
>>52142136
>digitalocean
It looks like they don't have any Australian servers. My project is going to be deployed commercially so it needs to have low latency.
>>52140650
NGINX is the way to go
>>52140650
nginx
>>52141640
good luck handling more than 10 concurrent connections with apache
shit, some guy in his basement could take a down a site running apache just by opening a bunch of connections
>>52141572
>he doesn't know you can run PHP on Nginx
>>52140696
This
>>52141572
nginx comes with uwsgi extentions since 1.3location / {
include /usr/local/nginx/conf/uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
uwsgi_param SCRIPT_NAME /;
uwsgi_modifier1 30;
}
AWS is the only answer
>>52140650
nginx
/thread
Name one thing wrong with nginx.
Protip: Don't try, you can't.
>>52144915
no create _sub/whatever_folder -> whatever_folder.domain.tld automatically accessible
otherwise nginx to go
>>52145007
wat
>>52145056
apache has some magic where you
1) specify a special folder (_sub)
2) bind it to a domain (4chan.gov)
3) any folder created in the _sub folder would be automatically accesible as that folder from the network, with the foldername as the subdomain
4) for example:
mkdir _sub/{fags,moor}
would make the links moot.4chan.gov and fags.4chan.gov accessible, with the respective folder's content shown at those subdomains;
unlike manually adding it to a conf file like with nginx
>>52140650
niggerx
>>52145228
that makes no sense. apache doesn't control dns records.
>>52145228
to be honest that just sounds like doing something different for the sake of being different. copy pasting a virtualhost and editing the servername and web root would achieve the same thing and be much easier to understand six months down the line.
>>52145327
jesus christ, anon
>>52145327
A record for *.bla is magic
>>52145355
i'm aware, but i'm also a lazy shit
>>52140650
always nginx
>>52140696
/thread