WordPress multisite and subdomains
Hi, I am on Windows 7 64bit and I am testing a WordPress multisite installation. When I create a new site as a subdomain from the WordPress network admin in the form of testsite.multisite.test and set the appropriate entry in the hosts file (127.0.0.1 testsite.domain.test) the subdomain redirects to a Laragon home page screen. Am I doing anything wrong?
@quantumleap33 : What web server are you using? (Nginx, Apache)
If you are using Nginx, please also check the auto generated virtual host in Menu > Nginx > sites-enabled
I am using Apache and I have auto virtual hosts enabled. I tried activating the Nginx server and disable the Apache one but I get an error "Service Nginx can not start. Reason: ngix: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32". Sorry, I am a bit new to Laragon!
@quantumleap33 : For server_name_hash_bucket_size you can check how to fix in this post:
can you make a tutorial for installing WordPress Multisite on Laragon?
I'm using Apache, and I have setup my WordPress Multisite, it's working on the WordPress side. when I'm accessing subsite.mysite.com, it's redirecting me to ISP Provider that says web not found.
What configuration do I need to change on Apache conf or maybe if I also use Nginx.
I agree with pramanadiputra. I get the exact same thing.
Currently it is unclear how to setup multisite and what settings to use from the server side of things, as far as WordPress is concerned, everything seems to be working fine.
I'm not sure what the problem is you two are having, but just wanted to say that I've gotten WordPress Subdomain Multisite working with Laragon. I followed https://www.wpbeginner.com/wp-tutorials/how-to-install-and-setup-wordpress-multisite-network/ and selected the "Sub-domains" option, and am using Apache, and need to manually add each sub-domain site to the hosts file.
Maybe it's working for me because there was a bug that got fixed?
@mnelson4 Yeah also got it to work doing what you did. It started working after a while...
I am also using multisite with WordPress but it is hosted with Cloudways WordPress multisite hosting and I never faced any issue.
@alexmorco Ok thanks for the Cloudways advertising Alex! Nothing to do with Laragon whatsoever!