Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
429 views
by Rookie

Hi, I want to use 2 domains, Domain1.com and Domain2.com for one single wordpress site. How can I do this? I did not attempt this yet and I know I will need to setup some nginx rules for sure. My main question is how to setup the nginx rules. 

I also want to add this code to the wp-config file. 

define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '~/www/domain1.com/htdocs');
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '~/www/domain1.com/htdocs');

1 Answer

0 votes
by Expert

Hi Mike,

Please, read the documentation.

Check the "parked domains" section in "site command" docs.

Regards.

by Rookie
Awesome! I'm going to try this out. :)
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

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

...