hosting multiple apps / subdomains
Posted: Tue May 03, 2011 8:52 pm
Firstly i want to say i am not sure if this is an issue with Amahi or my Godaddy settings. If anyone that gets a domain from godaddy can offer any advice i will be very happy.
I have been trying to host a couple of web apps and a basic web page on my Amahi server. I followed the wiki page about setting up subdomains and editing the .conf files but i am still having problems.
What i have done so far:
I have a domain name through godaddy. The main host is set to point to my external IP address (displayed on the Amahi control panel on Amahi.org)
My router/untangle server is set up to forward ports 80 and 443 to the local IP address of my HDA.
I plan to use the basic webpage to be the main page for my website with links to the web apps.
When I use "mydomain.com" and "username.yourhda.com" they both take you to straight to the web page.
I created subdomains for my webapps by following the wiki. In my godaddy account, under my domain, added the following:-
CNAME (alias) "app1" POINTS TO "app1.mydomain.com"
CNAME (alias) "app2" POINTS TO "app2.mydomain.com"
In the HDA i added the lines "ServerAlias app1.mydomain.com" and so forth. I saved the changed and then reloaded the httpd service.
So the web page at "mydomain.com" is working perfectally. But the web apps are not. It is like the sub domains are not getting resolved correctly. Like i said, i dont know if this is something i have not configured correctly in Godaddy or if it is something in my HDA?
If anyone has experience with this setup in Gadaddy or if you can help with looking at the HDA side of things. i would love to hear from you.
Thanks
Peter
I have been trying to host a couple of web apps and a basic web page on my Amahi server. I followed the wiki page about setting up subdomains and editing the .conf files but i am still having problems.
What i have done so far:
I have a domain name through godaddy. The main host is set to point to my external IP address (displayed on the Amahi control panel on Amahi.org)
My router/untangle server is set up to forward ports 80 and 443 to the local IP address of my HDA.
I plan to use the basic webpage to be the main page for my website with links to the web apps.
When I use "mydomain.com" and "username.yourhda.com" they both take you to straight to the web page.
I created subdomains for my webapps by following the wiki. In my godaddy account, under my domain, added the following:-
CNAME (alias) "app1" POINTS TO "app1.mydomain.com"
CNAME (alias) "app2" POINTS TO "app2.mydomain.com"
In the HDA i added the lines "ServerAlias app1.mydomain.com" and so forth. I saved the changed and then reloaded the httpd service.
So the web page at "mydomain.com" is working perfectally. But the web apps are not. It is like the sub domains are not getting resolved correctly. Like i said, i dont know if this is something i have not configured correctly in Godaddy or if it is something in my HDA?
If anyone has experience with this setup in Gadaddy or if you can help with looking at the HDA side of things. i would love to hear from you.
Thanks
Peter