how to enable subdomains on forge - subdomain

I created a new site with Forge and gave it this domain: abcd.test.com
Forge created the site and created the folder abcd.test.com where my files are stored.
When I try to access the abcd.test.com I get an error: Server not found.
What do I need to do? Do I need to do something at my domain provider to enable subdomains?

Your DNS (domain provider) settings probably needs to be changed.
You're probably missing the CNAME row.
* CNAME #
You're using Namecheap as a domain provider;
Subdomain docs Namecheap

Related

Is there a way to use google sites with a subdomain of a google domain if the domain root is not hosted on google?

I have a google domain like www.example.com which is hosted on digital ocean and for that reason I am using custom name servers setup on google domains as shown in image below.
I have created a google site and would like to use www.blog.example.com as the address but I have not been able to properly set up its DNS records while using custom name servers. It was added to default name servers by default but If I switch to this setting my main website will go down.
How would I go about it? Are there better ways to do this?
Thank you for your time.
I was able to setup this connection trough DigitalOcean which hosts the main site with a CNAME under the root domain.
Type: CNAME
Hostname: blog.example.com
Value: ghs.googlehosted.com.

How to set up multistore in sub domains in prestashop 1.7

We have domain.com as the main domain with some different apps in it.
We have prestashop.domain.com as a subdomain which is also a subfolder of root folder in the server public_html folder and contains prestashop installation core.
We want to have multiple shops with the help of prestashop multistore in this way:
someshop.domain.com
anothershop.domain.com
Is it even possible?
Because in the documents it says it is possible and it is done automatically by prestashop.
Check this : https://doc.prestashop.com/display/PS17/Setting+a+shop's+URL#space-menu-link-content
But it is not working for me anyway. I have been trying a lot of cpanel stuff.
It only works in this way:
prestashop.domain.com/someshop
prestashop.domain.com/anothershop
in such configuration Prestashop is responsible to route requests to both subdomains with a unique .htaccess placed in root directory and , of course, a unique installation.
So you have to ensure to configure both subdomains document root in cPanel towards the same server physical path where Prestashop resides.
Then, make sure to set the physical URI to "/" for both shops in the multistore configuration, this should do the trick.

"The host is unknown to Read the Docs" while hosting local RTD server

I'm trying to see whether I can host RTD privately (behind a VPN). I spun up an AWS EC2 instance and set it up using the Docker image and instructions here. Everything worked fine, but when I go to http://<internal_ip> to test it I get a page with the message
404 - Invalid Host
The host "" is unknown to Read the Docs
If you control this domain and believe this is in error, please review our custom domain documentation. In the past, we allowed custom domains to point to us without configuring the domain in the Read the Docs dashboard and we attempted to intelligently guess the correct project based on DNS settings. Now, we believe that explicit is better than implicit. Below are some steps to help you get your domain working again:
Ensure you have a CNAME record pointing to readthedocs.io
Add your desired domain in the Read the Docs dashboard for your project (under Your Project >> Admin >> Domains)
It points me to this page, but it seems to me that those instructions assume I'm hosting my project on the public readthedocs.io site. Any ideas on how I can get this to work on my private server?

Using a custom domain with openshift v3

I've been trying to use Openshift Online v3 to host a web app. It works fine with the red hat-provided domain, but I can't get the routing working to get it to work on any other domain. all I get is:
Application is not available
The application is currently not serving requests at this endpoint. It may not have been started or is still starting.
Possible reasons you are seeing this page:
The host doesn't exist. Make sure the hostname was typed correctly and that a route matching this hostname exists.
The host exists, but doesn't have a matching path. Check if the URL path was typed correctly and that the route was created using the desired path.
Route and path matches, but all pods are down. Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
Does anybody know how to do a custom domain in Openshift v3?
Step 1: Create two routes in openshift v3 console. One provided default by the openshift (*.openshiftapps.com) and create another route with the host name as your domain name.
Step 2: Go to domain registrar and add a CNAME record for your domain which points to *.openshiftapps.com domain
Wait for the CNAME addition to take effect and access your domain name from the browser, now it should get the page loaded properly.
As was the case with OpenShift Online Developer Preview, the GA free OpenShift Online starter tier does not support custom domains. Custom domains will only be available when the full paid tier is available. The only option in the interim is to use a proxy in front. One option is to use Cloudflare as that proxy.
Take a look at these docs.
$ oc create route edge --service=frontend \
--cert=${MASTER_CONFIG_DIR}/ca.crt \
--key=${MASTER_CONFIG_DIR}/ca.key \
--ca-cert=${MASTER_CONFIG_DIR}/ca.crt \
--hostname=www.example.com
For starter (free) plan, you may try hidden redirected URL. Some DNS providers provide such service.

How to add a custom hostname for project in OpenShift Online (Next Gen) Developer Preview

How can I put a custom host name for the new project created in the OpenShift (Next Gen) Developer Preview?
It was pretty straight forward for the previous version where I have to add an alias and add the required CNAME entry in DNS. For this version, I tried both CNAME and A. First I add a CNAME to the default address provided by the platform; then I tried adding A record for the address to the Cluster IP shown in the service. Both methods failed to solve it unfortunately!
I can see a router object in the site but not sure what to do!
Anyone any idea?
At this point in time, the developer preview does not permit you to add a custom hostname through the platform itself. OpenShift does support the concept, but it is disabled for now.
The only way to can achieve the same result at the moment is to run your site behind a CDN such as CloudFlare, or your own separate proxy outside of OpenShift, with those terminating the request for your custom host name and then forwarding it.
That said, how it would usually be done if enabled is by creating a new route with the specified hostname.
oc expose service myapp --name myapp-public --hostname www.example.com