Hi, I’m running a Wordpress multisite instance on a Cent OS box. I’m having a problem figuring out how to mask the intended domain.
Here’s what I’m trying to do:
Specs:
domain1.com’s conf
<VirtualHost *:80>
ServerAdmin admin@domain1.com
ServerName www.domain1.com
ServerAlias domain1.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
<Directory "/var/www/html">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
domain2.com’s conf
<VirtualHost *:80>
ServerAdmin admin@domain1.com
ServerName www.domain2.com
ServerAlias domain2.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/domain2.com-error.log
CustomLog /var/log/httpd/domain2.com-access.log combined
<Location "/">
ProxyPass "http://domain1.com/wordpress2"
ProxyPassReverse "http://domain1.com/wordpress2"
</Location>
</VirtualHost>
The result is domain2.com will redirect to domain1.com/wordpress2, but the domain isn’t masked. Thank you for any guidance.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
https://ghettocottage.com/blog/adventures-with-wordpress-multiple-domains/
This above website is not available.
Diese Website ist nicht erreichbar
Verbindung wurde zurückgesetzt. Versuchen Sie Folgendes: Verbindung prüfen Proxy und Firewall prüfen Windows-Netzwerkdiagnose ausführen ERR_CONNECTION_RESET
This comment has been deleted
There are a few approaches, but one way to do it, if you don’t mind editing your database a little. Here is a tutorial:
https://ghettocottage.com/blog/adventures-with-wordpress-multiple-domains/