By mferguson
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
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/
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.