EpicKris
Member
Posted 11 months ago #
I created a new site and haven't received any errors. It's a sub-domain site, although I already had an existing site previously, and therefore had a virtual host pointing to this existing site.
My problem is I can not see the new site created by WordPress, do I need to remove the virtual host to be able to see it?
You have to make sure your subdomains are pointed to where you installed WP (so generally it's point it to the public_html folder, as opposed to public_html/subfolder if that makes sense).
EpicKris
Member
Posted 11 months ago #
Okay, so currently my sites are like this:
Sites/example/www
Sites/example/sub1
Sites/example/sub2
Sites/example/sub3
So in the virtual-hosts, each would point to it's own folder, but I should make them all point to Sites/example/www ?
I just tried this and it did not seem to work.
It also seems that links to my posts are not shown, perhaps WordPress isn't creating the files?
If WordPress is installed in www AND you have subdomains set to sub1.example.com, then you should just be able to point them to www.
Are you editing the vhosts directly or...?
EpicKris
Member
Posted 11 months ago #
I edited the virtual hosts directly.
So it's got somethign like this:
ServerName sub1.example.com
ServerAlias www.sub1.example.com
DocumentRoot /Sites/example/www
EpicKris
Member
Posted 11 months ago #
Yes, similar.
Considering I previously had a few files (not many) on the site, do you think I should delete everything and start from scratch? Especially since even posts from the primary sites are not working.
Also wordpress does not create actual files for the posts, and multsite does not create actual folders for each site.