designate a primary domain for an IP address
Hi There,
I have a client who I setup 1 main domain and 3 sub domains. The account is on a dedicated IP address. The client needs to be able to access the site via the IP address (a big requirement for the client for some reason). When they go to the IP address directly one of the subdomains loads instead of the main site. Where can I change that setting so the IPs primary site (that loads under the IP if no /~username/ is used) shows up instead of one of the subdomains?
thanks!
Jen
-
Hi Jen, There's a post on how to do this at: You'd need to update the document root values used in that example to the document root of the website. Note that generally this type of access is better acheived through the modification of the hosts file on the workstation that needs IP access: Thank you. 0 -
Thank you for the reply, please forgive my newbie questions. So am I understanding it correctly that I follow the directions to add: ServerName MYSHAREDSERVERHOSTNAME DocumentRoot /THECLIENTUSERNAME/local/apache/htdocs ServerAdmin EMAIL suPHP_UserGroup nobody nobody adding the THECLIENTUSERNAME in the path to ensure the correct site is shown? When done that will ensure THEDEDICATEDIPADDRESS shows the client's main domain? 0 -
DocumentRoot /THECLIENTUSERNAME/local/apache/htdocs
Hello, This should resemble the actual path where the website files are stored. EX:DocumentRoot /home/clientusername/public_html
Thank you.0 -
thank you! I got it working for the non-ssl. Any idea where I can find the path in WHM/CPanel for the SSLCertificateFile SSLCERTIFICATEFILE SSLCertificateKeyFile YOUR-SSLCERTIFICATEKEYFILE 0 -
Hello, You'd simply have it match the value that's utilized in the virtual host of the domain name associated with the certificate you want to use. EX: SSLCertificateFile /var/cpanel/ssl/apache_tls/example-domain.tld/combined
You should be able to exclude the "SSLCertificateKeyFile" value from the entry. Thank you.0
Please sign in to leave a comment.
Comments
5 comments