Nginx immer Wilkommenseite

Dieses Thema im Forum "Installation und Konfiguration" wurde erstellt von sakura13, 16. Feb. 2014.

  1. sakura13

    sakura13 New Member

    Hi Leute,

    hab eben mein nginx neu installiert allerdings zeigt er mir ständig die Wilkommenseite und sobald ich die Default lösche findet er meinen server nicht mehr.

    meine config ist

    user www-data;
    # As a thumb rule: One per CPU. If you are serving a large amount
    # of static files, which requires blocking disk reads, you may want
    # to increase this from the number of cpu_cores available on your
    # system.
    # The maximum number of connections for Nginx is calculated by:
    # max_clients = worker_processes * worker_connections
    worker_processes 4;
    # Maximum file descriptors that can be opened per process
    # This should be > worker_connections
    worker_rlimit_nofile 8192;
    events {
        # When you need > 8000 * cpu_cores connections, you start optimizing
        # your OS, and this is probably the point at where you hire people
        # who are smarter than you, this is *a lot* of requests.
        worker_connections 1024;
    error_log /var/log/nginx/error.log;
    pid /var/run/;
    http {
    ## Detect when HTTPS is used
            map $scheme $fastcgi_https {
              default off;
              https on;
    #charset utf-8;
        # Set the mime-types via the mime.types external file
        include mime.types;
        # And the fallback mime-type
        default_type application/octet-stream;
        # Click tracking!
        access_log /var/log/nginx/access.log;
        # Hide nginx version
        server_tokens off;
        # ~2 seconds is often enough for HTML/CSS, but connections in
        # Nginx are cheap, so generally it's safe to increase it
        keepalive_timeout 20;
        # You usually want to serve static files with Nginx
        sendfile on;
        tcp_nopush on; # off may be better for Comet/long-poll stuff
        tcp_nodelay off; # on may be better for Comet/long-poll stuff
        server_name_in_redirect off;
        types_hash_max_size 2048;
        gzip on;
        gzip_http_version 1.0;
        gzip_comp_level 5;
        gzip_min_length 512;
        gzip_buffers 4 8k;
        gzip_proxied any;
            # text/html is always compressed by HttpGzipModule
        # This should be turned on if you are going to have pre-compressed copies (.gz) of
        # static files available. If not it should be left off as it will cause extra I/O
        # for the check. It would be better to enable this in a location {} block for
        # a specific directory:
        # gzip_static on;
        gzip_disable "msie6";
        gzip_vary on;
        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
    Zuletzt bearbeitet: 16. Feb. 2014

Diese Seite empfehlen