Re: Virtual Hosting with THTTPD problems
- Peter, not using 2 instances of thttpd as my work are security nuts
and have locked out all available ports. Need to keep everything on
port 80 which is the virtual hosting would be perfect (if I could
see my data of course).
--- In firstname.lastname@example.org, Peter Richard <pdfrichard@...>
> Are you trying this with two copies of thttpd running as
> at http://www.nslu2-linux.org/wiki/HowTo/UseTheThttpdWebserver ?By
> using the second copy at port 80 for standard websever and thewith
> setting the original to use port 8080, I have access to both the
> configuration webpages by using http://myslughost:8080/ and to
> regular webpages at http://slughost/ which you would configure
> virtual hosting in it's conf file.want
> On Jul 1, 2007, at 8:15 AM, bty597733 wrote:
> > SIles, thanks for the info, but logging in via ssh everytime I
> > to see a different web site seems a complete pain to me.that
> > Thi is fustrations as I;d got dyndns set up with 2 domain name
> > 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 siteproblem...
> > (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
> > 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
> > access the linksys page (or provide a link on my site to this).It
> > means I can;t have multiple sites as possible under vistualhosting,
> > but at leat I can have a web site plus full usability of thelinksys
> > pages.only
> > To ensure I don't screw anything up with the linksys pages I've
> > created index.html in the /html directory, and put everythingelse
> > my site references in a new /content sub-directory. The onlything
> > you need to do to ensure your new pages work is to chmod 775 themfor
> > 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 email@example.com, Siles <siles.bazerman@>
> > wrote:
> >> bty597733 wrote:
> >>> Following the instructions at http://www.nslu2-
> >>> linux.org/wiki/HowTo/VirtualHostingWithTHTTPD I have added a
> > managed
> >>> to host a web site on my slug. However; I now can't access my
> > web
> >>> admin page.
> >>> I followed the instructions and set up the vhosts directory and
> >>> user, followed all of the instructions to create a directory
> > myever
> >>> domain name, and set-up a test web site. I modified my
> > thttpd.conf
> >>> file as directed, and now when I go to my url (externally), my
> >>> router forwards port 80 to my slug and I get my new page.
> > However,
> >>> if I try to access the linksys admin page (using /login.cgi
> >>> or /sharename) I get the following message:
> >>> The requested URL `%.80s' resolves to a file outside the
> > permitted
> >>> web server directory tree.
> >>> I can access the linksys web page from my network, but when
> > Iweb
> >>> login to my data, I don't see any information!
> >>> For some reasons my thttpd can no longer see my data etc. Has
> > any
> >>> one else had this problem? Any ideas what it can be? Use the
> >>> page daily to access my data remotely so any advice is reallythe
> >>> appreciated.
> >>> With thanks, Jase.
> >> Hi Jase,
> >> I have had the same problem, not only using the vhosts but with
> >> others suggested in the "how to's".SSH
> >> 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
> > the
> >> approptiate line and when I need to get into the admin pages I
> > inas
> >> and edit then reboot the slug. Not elegant but works.
> >> Complicating this is my ISP blocking port 80 and needing to port
> > forward
> >> to 8080. Of course they will kindly unblock 80 for $116 a month
> > anew
> >> commercial account. I also have had a problem with creating a
> > userand
> >> as outlined in the "how to" articles. Every time my web site is
> > reached
> >> a login password is requested. Never did find a workarounf fot
> > that, so
> >> I put my /www directory in ADMIN 2.
> >> BTW my website is running on an 8GB Sony flash drive as Disk 2
> > a 4GB
> >> Memorex flash drive. Very lowpower and completely silent.
> >> Siles