logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Host Tutorial Redux - Apache site with Plone site
Author
sfts2



Joined: 06 Dec 2005
Posts: 4

PostPosted: Tue 06 Dec '05 21:19    Post subject: Virtual Host Tutorial Redux - Apache site with Plone site Reply with quote

I am fairly new to Apache, as my firm is primarily Windows shop. I am trying to get open source adopted here for some applications and I started with Plone/Zope for my content mgt system for our IT intranet and I installed ZenTrack (PHP app) for bug/issue management.

I want to make server to handle both apps and have had a hard time understanding the whole virtual hosts thing. (and Plones Virtual Host Monster) I understand simple cases I think, am struggling with how to configure Apache or Plone to support what I want to do.

I am using very recent downloads: Apache 2.0.55, Plone 2.1.1, and PHP 5.1.1, ZenTrack 2.6

Lets assume my server name is ITWeb at IP address xxx.xxx.xx.xx.

Plone has an embedded web server called ZServer and I have configured a port base of 1000 so that is serving content on port 1080 and Zope mgt interface is on port 9080.

Apache is currently configured on my laptop to run on port 80 to serve the Zentrack site for testing purposes. Now I want to move the site to production on a new server.

I just want the Plone site to be the default site (accessible on my internal network as http://itweb) and the Zentrack site to be accesible either as http://itweb/itwebtrack or http://itwebtrack - both would be preferable) I am hoping to avoid the use of any port numbers

Can someone help with a recommended Virtual host configuration, please?
Back to top
sfts2



Joined: 06 Dec 2005
Posts: 4

PostPosted: Wed 07 Dec '05 22:42    Post subject: httpd.conf with Rene's suggested changes - still a problem Reply with quote

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
I get a permissioning failure on my / directory - I do not have permission to access this directory. My windows permissions are fine.

Also, should there be a space after {REQUEST_URI}?


# The first VirtualHost section is used for requests without a known
# server name.

# Default host
# PLONE - ITWEB the following requires the NameVirtualHost *:80 directive above
<VirtualHost *:80>
ServerName ITWeb
RewriteEngine On
DocumentRoot "d:/itweb/itwebtrack/www"
ServerAdmin swilliams@valueline.com
RewriteCond %{REQUEST_URI} !^/itwebtrack
RewriteRule ^/(.*) http://itweb2:1080/VirtualHostBase/http/itweb:80/VirtualHostRoot/$1 [L,P]
</VirtualHost>
Back to top


Reply to topic   Topic: Virtual Host Tutorial Redux - Apache site with Plone site View previous topic :: View next topic
Post new topic   Forum Index -> Apache