bisher hatte ich einen Apache22 im Betrieb welcher jetzt abgelöst werden soll - durch nginx.
Also Jail gemacht und nginx, mariadb und php installiert. Ich möchte am Schluss mehrere Webseiten bzw. Domains drauf laufen lassen analog zu vhosts von Apache mit SSL als default. Hierzu habe ich eine nginx.conf gemacht und lade dort die Server Blocks die ich separat in einer Config habe.
Jetzt sehen allerdings Wordpress und Joomla schon bei der Installation sehr komisch aus, wie als würde CSS oder etwas fehlen... Das Admin Menu sieht aber auf den ersten Blick gut aus - zumindest mit Farbe... (anbei die screenshots)
Hat hier jemand eine Idee woran es liegen kann?
Meine nginx.conf
Code: Select all
user www;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
index index.html;
server {
listen 80 default_server;
server_name _; # This is just an invalid value which will never trigger on a real hostname.
access_log /var/log/nginx/default.access.log combined;
server_name_in_redirect off;
root /data/www/default;
}
# Load all vhosts !
include /usr/local/etc/nginx/conf.d/*.conf;
}
Code: Select all
# Redirects HTTP to HTTPS
server {
listen 80;
### Change the following two lines to match your website name
server_name example.net www.example.net;
return 301 https://www.example.net$request_uri;
# Prevent Clickjacking
add_header X-Frame-Options "SAMEORIGIN";
}
# Secure HTTP (ssl/tls)
server {
listen 443 ssl;
server_name example.net www.example.net;
root /data/www/example.net/;
index index.php index.htm index.html;[attachment=0]wordpress.tiff[/attachment]
# Prevent Clickjacking
add_header Strict-Transport-Security max-age=63072000;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
client_body_buffer_size 1K;
client_header_buffer_size 1k;
client_max_body_size 1k;
large_client_header_buffers 2 2k;
client_body_timeout 10;
client_header_timeout 10;
send_timeout 10;
# SSL Settings
### If you are using different names for your SSL certificate and key, change them below:
ssl_certificate /etc/ssl/www.example.net.pem;
ssl_certificate_key /etc/ssl/www.example.net_key.pem;
# Set the custom error pages
# error_page 404 = /data/public/404.html;
# error_page 403 = /data/public/404.html;
# Logs
error_log /var/log/nginx/example.net-error.log;
### Uncomment the line below if you don't want nginx logging access to the server.
#access_log off;
# Enables PHP
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm.socket;
try_files $uri =404;
fastcgi_param HTTPS on;
include fastcgi_params;
}
}