Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

APACHE virtual server 1

Status
Not open for further replies.

j1mlondon

Technical User
Jan 24, 2001
8
GB
I have set up two virtual servers on Apache on red hat 6.2 and changed my dns/hosts file to reflect these. Lets call them web1 and web2, but Apache seems to be farming out the same web pages to both sites?? I have changed httpd.conf to reflect virtual hosts with same IP and different server names and different document root directory..can anyone help?
 
One thing to remember is this only works if the browser supports it. I would verify the browser is indeed compliant with the http1.1 protocol as there may not be a problem with your config. If you're using an updated version of a mainstream browser, post your virtual directory configs and I'll take a look.

GJ
 
Thank you GunJack,
I hadn,t set the NameVirtualHost directive.
I have another issue...
I have now installed the Front page 2000 extensions.
Initially I could only browse one of the two sites...have now re-applied the extensions and can't see either. I really am fumbling around in the dark here, but getting somewhere, as linux is fairly new to me, just installing is progress!
Do you know where the permissions reside for the FP2000 access ( client side ). I presume it is set on the apache server? If so, where? I guess in httpd.conf ? But which lines...or is it set elsewhere in some sort of virtual host sub directory or file?
 
I've only administered the FP extensions on the NT side but I suspect there are some similarities. On the NT side, FP uses certain executables to do a lot of the work. You have to set permissions on the directories that contain these executables so the web server can read and execute the files. Most of these are in the /_vti/bin/ directory I believe.

If this was working until you re-installed them, I would suspect that the problem is not with the Apache config since the install would only affect the FP files and their directories. Do the install directions give you any reference to what the file and directory permissions should be? If you're new to linux/unix, you'll be looking for something like "chmod 777", "chmod 650", etc.. As a test, you could do a "chmod +rx FPDirectory" where FPDirectory is the install location for the FP files. If this works, then it's just a matter of finding out what permissions the directories should have. Be very careful with this as a lot of security holes revolve around executables and directories have more permissions than they should.

GJ
 
I just wanted to know how you create a virtual server, as opposed to a virtual host.

Thanks! Rninja

smlogo.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top