0 votes
199 views
by
edited

Do I need to make any edits here? /etc/nginx/sites-available

Should I see extra folders being created here after new site is made? /var/www/sub1.domain.com or /var/www/sub2.domain.com

I re-read docs at this page and run: sudo site example.com -wpsubdom=default -cache

After I run that command, I just goto the wp-config file and notice the code is already there so I uncomment and because .htaccess isn't support, I skipped that second installation step during network setup in WP Admin. The chunk of code snippet looks something like this:

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^ - [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

RewriteRule . index.php [L]

One more thing, will the PuTTY sudo site -list reflect wordpress multisite installations?

Also, are EasyEngine tutorials / docs partially relevant? Can they be used?

1 Answer

0 votes
by Expert
 
Best answer

Hi,

  1. You don't need modify nginx conf file.
  2. You won't see more folders. You can try it and see it before asking, it's that simple.
  3. You just need to follow the steps mentioned in Site Command Docs and uncomment the lines in wp-config.
  4. Site List will show only the main site, not sub-sites in Multisite. You can try it before asking, it's that simple.
  5. I don't know if EE tutorials are relevant or if they are still updated.
Are you having any issue with multisite?
Regards.
by

RIght on brothaman - thank you.

Yes, I did try... but was not confident in my results. I'm glad I double-checked with you... it makes me feel better to know that everything is setup correctly after reading your responses.

No issues at all, though, I switched from subdomain to subdirectory for a couple of reasons.

1. lack of wildcard support for LE SSL
2. I thought it was weird that I did not see any folder populated in /var/www/

The domain mapping works correctly and I just finished testing out things like adding a website, changing dns in CloudFlare to test map domain, activating plugins, etc... everything works great!

Ahhh... one thing I did notice, Nginx Helper Plugin.. when I had that activated with the one setting "Delete local server cache file" I would notice weird 1s or 1.5s bottleneck so I chose other radio option and that disappeared. I didn't notice anything weird when I configured  Redis Object Cache Plugin.

What do you think about the SSL thing? If CloudFlare setting Crypto is set to Full, does it make a difference to run sudo site domain.com -ssl-on ? Does any magical setting in the nginx.conf file change?

https://i.imgur.com/CWa73Kl.png

by Expert
Glad to see that everything is fine.

I've never used Cloudflare.

Regards!
Welcome to the Community site for Webinoly.

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

News: Now you can use any external SMTP service in your server. All the server outgoing emails from any of your websites will be sent through this service.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...