Page 1 of 1

host a website without logging in?

Posted: Sun Feb 05, 2012 12:17 am
by hunner
Hello. I'm hoping to host a simple website from home. Following the wiki, I created a new web-app named "Website" and placed a index.html file in the "/var/hda/web-apps/Website/html" folder, and have "mydomain.com" in the conf file. From any computer on my home network, I can type "website" in the browser and see the index.html. When I try "mydomain.com" from outside though, it directs to "mydomain.com/user_sessions/new" and prompts to log in to the Amahi dashboard. Did I maybe misunderstand something? Is it possible to host a public site without making people log in? It seems like something simple. If it's not so simple, I apologize... Any info would be much appreciated :)

Re: host a website without logging in?

Posted: Sun Feb 05, 2012 7:42 am
by bigfoot65
Did you add username.yourhda.com to the .conf file for website? I presumed you created a web-app called website, then modified the ####-website.conf file in /etc/httpd/conf.d directory as indicated, and restarted httpd.

The wiki can be confusing. Also it's best not to use upper case with the app names. This would be treated like a web app, but actually will only be the index.html file. It should not direct you to the login page, just your website app.

Does that make sense?

Re: host a website without logging in?

Posted: Sun Feb 05, 2012 3:09 pm
by hunner
Yeah, makes sense, and no I did not have username.yourhda.com in there, just "website.lan.com" and "mydomain.com". So, I deleted the "Website" webapp and created a "website" webapp, modified the xxxx-website.conf with "ServerAlias mydomain.com", reloaded httpd, copied the "index.html" to html folder, and it did the same thing. Then I tried changing the conf to read "ServerAlias www.mydomain.com" instead of "mydomain.com" and it seems to be working now...
Thanks for the info :D got to remember to watch the upper case letters