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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm absolutely stumped on Apache & Plone config

Status
Not open for further replies.

wendi88

Technical User
Jan 30, 2007
4
US
I have exhausted figuring out something that should be very simple to do via httpd.conf configuration.

1. Have all requests via port 80 to be redirected to localhost:8080 (i.e. serve plone site)

2. Have all other requests other than /plone* forwarded to the index.htm file in the root /var/ folder

I would think that this is a VERY basic configuration? Base VH configuration works fine but only performs the /plone redirect on port 8080; I’ve tried dozens and dozens of other configs to serve the /var/ file.

Listen 80
...
NameVirtualHost *:80
...
</VirtualHost *:80>
ServerName DocumentRoot /var/ RewriteEngine On
RewriteRule ^/(.*) [L,P]
</VirtualHost>

I'd also be willing to open a port for each, if that would work. However, I cannot start Apache with a “double listen” (e.g. “Listen 80” [next line] “Listen 10080”)

Help?
-Wendi
(Apache on Fedora Core 5)

Hosts File:
127.0.0.1 localhost.localdomain localhost
127.0.0.1
 
</VirtualHost *:80>

Is this a typo? It should be:

Code:
<VirtualHost *:80>

Other than that, the problem may be with your reference to localhost. When you request localhost, apache will resolve to the default vhost. Since you have at least one vhost defined apache will no longer server the 'main' server. It defaults to the first vhost defined. What are you trying to accomplish with this type of setup? Maybe we can come up with another way.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top