Red Hat Networking - Apache & VirtualHosts

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Networking > January 2004 > Apache & VirtualHosts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache & VirtualHosts
R.Gunn

2004-01-23, 7:33 pm

Firstly, apoligies for the crosspost - I posted this to 2 newsgroups
yesterday and one hasnt even shown up yet and hasnt updated since before I
posted - so I am trying again....

Hi.

I am having teething problems with Apache2.0 running on RH9:

I can see the "Apache configuration error" page (error 404 replacement) when
I hit the server but cannot get it to view pages I put into /var/www/html.

I saw a reference to an "apache" user and group - do I need to create these
first? How do I then grant access rights only to the /var/www/html folder
(or do I have to give it more rights than that).

I have also setup 4 virtual hosts using dyndns.com and have used the GUI
configurator for apache to include these. To start with all of them showed
the same 404 replacement file. Now when I try I get an error saying pages
are secure and to use https:// to access them rather than http://. Is this
because they are running on port 81 rather than 80? (reason being I am
accessing from outside using a router and the company website is already
running on a separate webserver on port 80!). I dont recall what I did
before this happened so any advice here would also be great - or is it
because its port 81 and not 80?!

Error page:
-----starts-----
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.


Hint: https://rgunn.shacknet.nu:81/



--
-----ends-----

I have since discovered that the https:// problems start after enabling Name
based Virtual host... doing IP based does not cause the problem (although I
dont want IP based!).

Can anyone help me with this please?
---
Richard Gunn, G7UDG
Thanks for your help!
[Please remove the obvious if replying direct]


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com