Domain issues
Permalink
I can't seem to find this exact problem so here it is...
I installed concrete5 on a subdomain of my server. I have a domain pointing to that address but when I browse to the domain it keeps bumping me back to the index of my root directory.
so...
originaldomain.com/subdomain <-- gives me the concrete 5 site
subdomain.com <-- (valid domain attached) goes back to index of originaldomain.com
subdomain.originaldomain.com <-- goes back to index of originaldomain.com
is there a setting I need to adjust in concrete5? if I check the path properties of my home page the canonical URL is
http://originaldomain.com/subdomain/...
How do I set that tohttp://subdomain.com/
I installed concrete5 on a subdomain of my server. I have a domain pointing to that address but when I browse to the domain it keeps bumping me back to the index of my root directory.
so...
originaldomain.com/subdomain <-- gives me the concrete 5 site
subdomain.com <-- (valid domain attached) goes back to index of originaldomain.com
subdomain.originaldomain.com <-- goes back to index of originaldomain.com
is there a setting I need to adjust in concrete5? if I check the path properties of my home page the canonical URL is
http://originaldomain.com/subdomain/...
How do I set that tohttp://subdomain.com/
The settings are wrong in Apache for this subdomain. When you visit a webpage, Apache gets an HTTP header that says what website you want to view. Then Apache goes and gets this site.
For some reason, Apache thinks that subdomain.com is located in the folder of the parent domain.
If you have an third-party host, they need to set this up for you.
If you host it yourself, you need to update your Apache configuration to look something like this:
Listen 80
NameVirtualHost *
<VirtualHost *>
ServerNamehttp://www.domain.com
DocumentRoot /home/httpd/htdocs/ (FULL PATH TO ROOT FOLDER, C:\somedir\somedir on Windows)
</VirtualHost>
<VirtualHost *>
ServerName subdomain.domain.com
DocumentRoot /home/httpd/htdocs/subdomain/
</VirtualHost>
Then, restart your Apache service.