6511Re: Virtual Hosting with THTTPD problems
- Jul 1, 2007SIles, thanks for the info, but logging in via ssh everytime I want
to see a different web site seems a complete pain to me.
Thi is fustrations as I;d got dyndns set up with 2 domain name that
point to my router, which in turn forwarded port 80 to my slug, and
the virtual hosting was pointing my my html files for my new site
(on one domain), and a to the existing web admin page on another.
I can't get the linksys page to see any of my data while virtual
hosting is switched on, but I have found a way round the problem...
I've switched off virtual hosting and gone back to the original
setup. I've create a new index.html file in the /home/httpd/html
directory for my home page. Your browser will go to index.html
before trying index.cgi (which is what the linksys page uses).
Thesefore I go to my web site, and just need to type /index.cgi to
access the linksys page (or provide a link on my site to this). It
means I can;t have multiple sites as possible under vistual hosting,
but at leat I can have a web site plus full usability of the linksys
To ensure I don't screw anything up with the linksys pages I've only
created index.html in the /html directory, and put everything else
my site references in a new /content sub-directory. The only thing
you need to do to ensure your new pages work is to chmod 775 them
after copying them to the slug.
By if anyone can access the data on your disk using virtual hosts
I'd be very interested.
With thanks, Jase.
--- In firstname.lastname@example.org, Siles <siles.bazerman@...>
> bty597733 wrote:
> > Following the instructions at http://www.nslu2-
> > linux.org/wiki/HowTo/VirtualHostingWithTHTTPD I have added a
> > to host a web site on my slug. However; I now can't access myweb
> > admin page.my
> > I followed the instructions and set up the vhosts directory and
> > user, followed all of the instructions to create a directory for
> > domain name, and set-up a test web site. I modified mythttpd.conf
> > file as directed, and now when I go to my url (externally), myHowever,
> > router forwards port 80 to my slug and I get my new page.
> > if I try to access the linksys admin page (using /login.cgipermitted
> > or /sharename) I get the following message:
> > The requested URL `%.80s' resolves to a file outside the
> > web server directory tree.I
> > I can access the linksys web page from my network, but when ever
> > login to my data, I don't see any information!any
> > For some reasons my thttpd can no longer see my data etc. Has
> > one else had this problem? Any ideas what it can be? Use the webthe
> > page daily to access my data remotely so any advice is really
> > appreciated.
> > With thanks, Jase.
> Hi Jase,
> I have had the same problem, not only using the vhosts but with the
> others suggested in the "how to's".
> What I did was to have two lines in thttpd.conf. One points to
> /www/httpd/html and the other to /home/httpd/html. I comment out
> approptiate line and when I need to get into the admin pages I SSHin
> and edit then reboot the slug. Not elegant but works.forward
> Complicating this is my ISP blocking port 80 and needing to port
> to 8080. Of course they will kindly unblock 80 for $116 a month asa
> commercial account. I also have had a problem with creating a newuser
> as outlined in the "how to" articles. Every time my web site isreached
> a login password is requested. Never did find a workarounf fotthat, so
> I put my /www directory in ADMIN 2.a 4GB
> BTW my website is running on an 8GB Sony flash drive as Disk 2 and
> Memorex flash drive. Very lowpower and completely silent.
- << Previous post in topic Next post in topic >>