host a website without logging in?

hunner
Posts: 2
Joined: Sat Feb 04, 2012 11:45 pm

host a website without logging in?

Postby hunner » Sun Feb 05, 2012 12:17 am

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 :)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: host a website without logging in?

Postby bigfoot65 » Sun Feb 05, 2012 7:42 am

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?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

hunner
Posts: 2
Joined: Sat Feb 04, 2012 11:45 pm

Re: host a website without logging in?

Postby hunner » Sun Feb 05, 2012 3:09 pm

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

Who is online

Users browsing this forum: No registered users and 39 guests