104
linuxxx
7y

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? 😅

Comments
  • 13
    Yep, you should use Apache instead
  • 5
    @Linux Haha, I always use nginx on the host and Apache on the guest :)
  • 5
    Could you provide a documentation for all that? 😜
  • 3
    @linuxxx
    ;)
    Anyway, I also do that :p but I am testing new stuff alot too

    Stuff that I recommend:
    glusterFS
    Galera
    HAProxy
    Varnish
  • 2
    @Linux Know the last two, will look into the other ones!
  • 2
    @linuxxx
    You will like it :)
  • 2
    @linuxxx try learning ainsible or salt stack
  • 2
    @windlessuser I'm working on ansible yeah :D
  • 1
    I love caddy, faster and easier than apache and makes https even easier.
  • 7
    So, 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*
  • 1
    Also consider Traefik as an automatic reverse proxy for e.g. Docker containers with native let's encrypt integration
  • 1
    @justwellbrock a caddy container also has lets encrypt and can automatically update from your master branch as well
  • 1
    @Codex404
    Nothing can be easier than Apache
  • 2
    @Linux Tbh I got a caddy server up and running with I think like four lines of config or something?
  • 1
    @linuxxx
    Well, to get Apache or Nginx "Up and running", you basically install it and start it ;)
  • 1
    @Linux I meant as for the configuration :P
  • 2
    @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
  • 1
    @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
  • 1
    @Linux the config is easier and it has much more functionality. So doing more in less time makes it easier for me.
  • 1
    @Codex404
    I have not found anything in caddy that Apache cant do, except QUIC.
  • 1
    @Linux

    SSL: one line
    Document root: 3 lines
    Http2: 0lines, its on by default

    The other things are exactly the same as by any other server config, so I guess @linuxxx skip these in his exaggeration :)
  • 1
    @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?
  • 1
    @Linux most features in caddy are in the foreground where with apache you have to write cronjobs and whatelse to do it.
  • 1
    @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
    }
  • 1
    @Codex404
    You have to give me an example for that :)
  • 1
    @Linux never done that myself but Im pretty sure its possible without to much hassle.
  • 2
    @Linux FastCGI is just one line extra (or it was for me)
  • 1
    @linuxxx

    The same as Apache then ;;;;)))))

    Listen 80
    <VirtualHost *:80>
    DocumentRoot "/www/example1"
    ServerName www.example.com
    </VirtualHost
  • 1
    @linuxxx
    Fastcgi is 0 rows extra in Apache,
    Proxying to fpm - One Line ;)
  • 2
    @Linux in your example the output for logs arent set to a custom location and gzip isnt enabled.
  • 2
    @Linux but what about the SSL part? You don't even need to define SSL certs in caddy, caddy takes care of that itself ;)
  • 1
    @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
  • 2
    @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
  • 1
    @linuxxx
    I use pound for that ;)))
  • 1
    @linuxxx
    Yep, that was true in Apache 2.2
    Not in 2.4 :)
  • 1
    @Linux keep in mind that I don't even use Caddy xD
  • 2
    I'm stopping the discussion from my side as I know we'll never agree on this one anyways :P
  • 1
    @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.
  • 1
    @linuxxx why dont you use caddy?
  • 1
    @linuxxx
    You mean you can never win ;;;;;;)))))))
  • 3
    @Linux he won already
  • 2
    @Codex404 Because I still love NGinX :D. @Linux It's not about winning, it's about having different preferences/opinions ;)
  • 1
    @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.
  • 1
    @Linux What is QUIC by the way?
  • 1
    @Codex404 no
    @linuxxx Different usecases* :)
  • 2
    @linuxxx
    TLS over UDP, perfect for streaming.
  • 2
  • 3
    @linuxxx
    Only caddy has support for it I think. They have not considered it for Nginx or apache (booh)
  • 1
    That's an odd enjoyment.... Not very good use of time?
  • 1
    @linuxxx

    > Am I weird?
    Yes.
  • 1
    Make it a Honeypot
  • 0
    @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.
  • 0
    @Linux "Multiple sites on a server? Apache" I don't agree with that either as you can just have multiple config files.
  • 1
    @JoshBent Hey we agree on something yet again for once
  • 0
    @JoshBent
    Ever heard about .htaccess? Try running 100+ sites with Nginx.
    Also, slowloris is easily countered. It is never a problem anymore.
  • 0
    @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
  • 0
    @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,
  • 0
    @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.
  • 0
    @Linux just create a config file and throw that into conf.d how hard is that? 😴
  • 0
    @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.
  • 3
    @Linux @linuxxx both need more than 5lines because you need to run it on 443 and forward all request on 80 to 443
  • 2
    No you are not weird, you are server bound to serve servers. 😅
  • 0
    @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.
  • 0
    @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.
  • 0
    @LrdShaper ssl is done automatically with caddy, also doing the ports.
  • 0
    @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.
  • 0
    @Linux and handing the .htaccess control completely to the user sometimes isn't the best choice either honestly, especially as a managed host.
  • 1
    @JoshBent he works for a hosting company where they offer dedi, virtual and shared
  • 0
    @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
  • 1
    @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)
Add Comment