Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Linux438107y@linuxxx
;)
Anyway, I also do that :p but I am testing new stuff alot too
Stuff that I recommend:
glusterFS
Galera
HAProxy
Varnish -
w4tsn35017ySo, if I ever am in a despair situation a can type ./linuxxx.sh into my shell and I'll be rescued right?
*considers aliasing the deploy script* -
w4tsn35017yAlso consider Traefik as an automatic reverse proxy for e.g. Docker containers with native let's encrypt integration
-
@justwellbrock a caddy container also has lets encrypt and can automatically update from your master branch as well
-
@Linux Tbh I got a caddy server up and running with I think like four lines of config or something?
-
Linux438107y@linuxxx
Well, to get Apache or Nginx "Up and running", you basically install it and start it ;) -
Linux438107y@Alice
Yep, so true :)
I would say this:
Multiple sites on a server? Apache
Single site on a server with high traffic? Nginx
New nice stuff ( QUIC and stuff )
Caddy -
Linux438107y@linuxxx
Four lines, na
Four very Long lines? Probably
Four lines that contain PHP config, SSL/TLS, servername and alias, documentroot, modules like brotli/http2
If four lines contain that, I am inpressed -
@Linux the config is easier and it has much more functionality. So doing more in less time makes it easier for me.
-
Linux438107y@Codex404
So what about fcgi? If you only have HTML that config seems to do fine. Also, what about ownership of the files? Can you run vhost as different users? -
@Linux most features in caddy are in the foreground where with apache you have to write cronjobs and whatelse to do it.
-
@Linux 5 lines* and just for a simple site in my case:
example.com {
root /opt/caddy/web/default
log /opt/caddy/logs/default.log
gzip
} -
@Linux never done that myself but Im pretty sure its possible without to much hassle.
-
Linux438107y@linuxxx
The same as Apache then ;;;;)))))
Listen 80
<VirtualHost *:80>
DocumentRoot "/www/example1"
ServerName www.example.com
</VirtualHost -
@Linux in your example the output for logs arent set to a custom location and gzip isnt enabled.
-
@Linux but what about the SSL part? You don't even need to define SSL certs in caddy, caddy takes care of that itself ;)
-
Linux438107y@Codex404
It is using the default log path /var/log/apache2/*
Also, you can enable gzip by running
a2enmod gzip
Without adding lines to you config -
@Linux I've had a few times where I had to add between 5-10 lines to get fastcgi working. All I remember is that it was on a CentOS server. it wasn't enabled by default or something
-
I'm stopping the discussion from my side as I know we'll never agree on this one anyways :P
-
@Linux in that case you can remove the log line from linuxxx file and the gzip is another action which is more work than adding it to the config.
-
Linux438107y@Codex404
How is it more work when it I dont have Tp write the config?
Anyway, I have always wanted to try caddy for the QUIC support. -
Linux438107y@linuxxx
Only caddy has support for it I think. They have not considered it for Nginx or apache (booh) -
@Linux why apache, to get slowlorisd? or to have the slowest per traffic performance? there is no reason to have apache installed for years by now.
-
@Linux "Multiple sites on a server? Apache" I don't agree with that either as you can just have multiple config files.
-
Linux438107y@JoshBent
Ever heard about .htaccess? Try running 100+ sites with Nginx.
Also, slowloris is easily countered. It is never a problem anymore. -
@Linux if you are running 100 websites on one server you are doing sonething wrong anyway if you are not doing a shared hosting plan, but also yes, its as easy as having either 100 config files for each site or multiple subquery ones
-
Linux438107y@JoshBent
Ofcourse I am not running 100 sites on one single server, I have a few for that.
I do know that having 100 different vhost is possible on nginx, try to teach the wordpress "developer" to go into the nginx vhost and configure it as she/he wants.
.htaccess does solve that, -
@Linux It's just as easy, but you are now switching topic and trying to escape the point - you were saying apache is better, its not.
-
Linux438107y@JoshBent
Are you familiar with .htaccess?
Seems like that is a completely new thing for you.
http://www.htaccess-guide.com
Nginx does not support .htaccess, apache does and that does make apache far more flexible than nginx. Using Nginx in a shared hosting environment is unpractical.
Nginx do have the speed and lower footprint when it comes to static content. But basically that is all. -
@Linux you really sound annoying with that question I have to say. I have been in the past using apache until I finally made myself learn nginx and I do know what a .htaccess is and yes good catch indeed nginx does not support .htaccess, wow! 😮
"Nginx do have the speed and lower footprint when it comes to static content. But basically that is all." that's bullshit once again too, nginx can serve massive websites, it doesn't matter, its simply much more optimized and faster in all metrics.
As I said nginx has config files too and it can't be ddosed by a wifi microSD card. If you continue asking me "do you know what htaccess is", youre going to look really retarded imho. -
Linux438107y@JoshBent
If you knew what .htaccess is and hosted tens of thousands website you should know why apache is superior.
I manage servers with millions of unique visitors each day, and guess what?
No performance issues at all. So Apache can serve massive websites too, and with .htaccess the "webdevs" does not have to contact us to rewrite the vhost because the only thing they know is visual composer in wordpress.
I know that a MISSCONFIGURED server with apache is vurnable to slowloris, but that is a easy fix. -
@Linux
So first you are saying "Ofcourse I am not running 100 sites on one single server, I have a few for that." but now you are all of the sudden managing a shared public hosting? and I did mention right from the start "if you are not doing a shared hosting plan", which again can be solved by one-click hosting installs of wordpress or by _actually_ managing the wordpress installations just like any other wordpress host does, which I did manage myself too in the past, which is ultimate aids to begin with, but still possible. -
@Linux and handing the .htaccess control completely to the user sometimes isn't the best choice either honestly, especially as a managed host.
-
w4tsn35017y@Codex404 I don't know what you mean by 'from the master branch'.
The thing with Traefik is, that it automatically provides a reverse proxy to your Docker containers. Not that it runs in a Docker container like your caddy example. Are we talking about different stuff here?
And yeah, I'm also using Caddy in one of my projects. Four lines of config per page. Its a breeze :D -
@justwellbrock if you use caddy you must know lets encrypt is already included with it.
And that it can automatically get newest versions from git. (the master branch)
Related Rants
Sometimes I just randomly start installing a new vps, configure the server, put a random sub domain on it, forward nginx with SSL, print something random on the page and then just remove the thing again.
Solely because I enjoy installing servers/configuring them.
Am I weird? 😅
rant
servers
hello i'll be your server today