Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SWAG, SpaceInvaderOne, website server

Featured Replies

Hi every one,

 

I've got great time with my unraid server since 6 months.

I've followed SpaceInvaderOne in configuration: SWAG, Jitsi, Radarr, Sonarr,.....

 

Now, I'd love to host my websites (multi domains) on my unraid server.

 

I started with that : https://technicalramblings.com/blog/how-to-set-up-a-wordpress-site-with-letsencrypt-and-mariadb-on-unraid/

 

What I want: Wordpress.MyDomainName.com pointing on a wordpress site.

 

What I get now: Wordpress.MydomainName.com pointing on the default swag webpage.

       If I'm doing Wordpress.MyDomainName.com/wordpress, I've got my wordpress site.

 

What I did:

- Add Wordpress.MyDomainName.com in Subdomain(s) Swag Docker

- Copy/rename the "default" files in /appdata/swag/nginx/site-conf/. I've got now wordpress.mydomainname.com.conf (the copy of "default").

 

I've made some few editions, and start again my swag docker.

 

The error is:

nginx: [emerg] the same path name "/var/lib/nginx/cache" used in /config/nginx/site-confs/default:153 and in /config/nginx/site-confs/wordpress.mydomainname.com.conf:153

 

I'm a little bit confused....

What am I doing wrong ?

 

Here is my wordpress.mydomainname.com.conf:

## Version 2020/05/23 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default

# redirect all traffic to https
server {
        listen 80;
        listen [::]:80;
        server_name wordpress.mydomain.com;
        return 301 https://wordpress.mydomain.com$request_uri;
}

# main server block
server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;

        root /config/www/wordpress;
        index index.html index.htm index.php;

        server_name wordpress.mydomain.com;

        # enable subfolder method reverse proxy confs
        include /config/nginx/proxy-confs/*.subfolder.conf;

        # all ssl related config moved to ssl.conf
        include /config/nginx/ssl.conf;

        # enable for ldap auth
        #include /config/nginx/ldap.conf;

        # enable for Authelia
        #include /config/nginx/authelia-server.conf;

        # enable for geo blocking
        # See /config/nginx/geoip2.conf for more information.
        #if ($allowed_country = no) {
        #return 444;
        #}

        client_max_body_size 0;

        location / {
                try_files $uri $uri/ /index.html /index.php?$args =404;
        }

        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                include /etc/nginx/fastcgi_params;
        }


}

# enable subdomain method reverse proxy confs
include /config/nginx/proxy-confs/*.subdomain.conf;
# enable proxy cache for auth
proxy_cache_path cache/ keys_zone=auth_cache:10m;

 

  • 4 months later...

Hello,

 

I'm not a nginx guru and I hope you found a solution since november.

I'm trying to host some websites within Unraid. At the moment my websites are hosted on dedicated servers.

 

For your problem I think you should look at the location settings eventhough yours looks fine

 

To illustrate. I have a setup where one of my site is located in /var/www/boombast/

 

Heres my location settings:

location ^~ / {
    root /var/www/boombast;
    try_files $uri $uri/ /index.php?q=$uri&$args;
    include /etc/nginx/conf.d/php.conf;
    include /etc/nginx/conf.d/cache.conf;

 

Note that I have copied the content of the wordpress folder within the boombast one.

 

Hope it helps.

This is specific to swag. You don't want to edit site-confs. If you want to use subdomains do that in proxy-confs. So need to set the conf in site-confs back to stock and only edit the ones in prixy-confs



Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.