[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
I want to host a website. Is there any stable alternative to Apache?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 44
Thread images: 6
File: The-Apache-helciopters-ta-007.jpg (22 KB, 460x276) Image search: [Google]
The-Apache-helciopters-ta-007.jpg
22 KB, 460x276
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.
>>
File: tmct.png (142 KB, 2000x1333) Image search: [Google]
tmct.png
142 KB, 2000x1333
>>52140650
yes
>>
File: 1338952133438.png (48 KB, 344x517) Image search: [Google]
1338952133438.png
48 KB, 344x517
>>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 gunicorn

location / {
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.
>>
File: Screenshot_1.png (25 KB, 522x224) Image search: [Google]
Screenshot_1.png
25 KB, 522x224
>>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
>>
File: 01-woman-embarrassed-lgn.jpg (32 KB, 375x500) Image search: [Google]
01-woman-embarrassed-lgn.jpg
32 KB, 375x500
>>52141572
>he doesn't know you can run PHP on Nginx
>>
>>52140696
This
>>
>>52141572
nginx comes with uwsgi extentions since 1.3
location / {
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
>>
File: Nginx-Logo.png (33 KB, 300x300) Image search: [Google]
Nginx-Logo.png
33 KB, 300x300
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
Thread replies: 44
Thread images: 6

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.