Mobile app version of vmapp.org
Login or Join
RJPawlick198

: Configuring A Subdomain (cPanel) - www works, subdomain on it's own doesn't I've created a sub domain on my website using cPanel at test.mydomain.com, and this created a folder in my main 'www'

@RJPawlick198

Posted in: #Cpanel #Domains #Html #Subdomain

I've created a sub domain on my website using cPanel at test.mydomain.com, and this created a folder in my main 'www' directory called test.

In this folder is a folder called cgi-bin, and it seems to redirect the page to say "It works!", but when I upload my own index.html file to the test directory it keeps showing test.mydomain.com/cgi-sys/defaultwebpage.cgi instead of the index file. If I go to test.mydomain.com then it works OK.

How do I host my content at the sub domain? It's my first time setting one up so I'm a bit lost.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @RJPawlick198

2 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

Check in a different browser, you may be viewing a cached version of the default page. If that's the case clear your cache and refresh a few times in your regular browser. The server should be setup to accept index.html index.htm index.php and other common index pages.

10% popularity Vote Up Vote Down


 

@Murray432

In the test directory, ensure there's no redirect under .htaccess or an index file.

For example, in the root of my webdir my index.html was this:

<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>


So removing that would fix it for me.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme