|
Tried that and it bombs the entire http server...... -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Sarah Poger Gladstone Sent: Monday, November 27, 2006 5:49 PM To: Web Enabling the AS400 / iSeries Subject: Re: [WEB400] Still having problem Another suggestion: Put the directive CustomLog logs/access_log_vhost1 Combined in the first virtual host. Then put the directive CustomLog logs/access_log_vhost2 Combined in the second virtual host. It will help you figure out which virtual host is processing each request. Once everything is working, you can take these 2 directives out. On 11/27/06, Sarah Poger Gladstone <listmember@xxxxxxxxxxxxxx> wrote:
I would use the following httpd.conf: ************Beginning of data************** # Apache Default server configuration # General setup directives HotBackup Off #CgiConvMode %%EBCDIC%%/%%EBCDIC%% HostNameLookups On LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referrer}i\" \"%{User-Agent}i\"" Combined CustomLog logs/access_log Combined TimeOut 30000 KeepAlive Off AddLanguage en .en Listen 80 MapMatch ^/CGI-BIN/(.*) /CGI-BIN/$1.PGM ScriptAliasMatch ^/CGI-BIN/(.*) /QSYS.LIB/QCGISRC.LIB/$1 # name virtual hosts NameVirtualHost *:80 <VirtualHost *:80> ServerName www.carrtlp.net DocumentRoot /www/apachedft/carr/htdocs DirectoryIndex index.html index.shtml # Deny most requests for any file <Directory /> Order Allow,Deny Deny From All Options -Indexes -ExecCGI -Includes DirectoryIndex index.shtml index.html </Directory> # Allow requests for files in document root <Directory /www/apachedft/carr/htdocs> order allow,deny allow from all <FilesMatch "\.shtml(\..+)?$"> Options +Includes SetOutputFilter Includes </FilesMatch> </Directory> <Directory /QSYS.LIB/QCGISRC.LIB> Options +ExecCGI Order Allow,Deny Allow From All </Directory> </VirtualHost> <VirtualHost *:80> ServerName www.otr.com DocumentRoot /www/apachedft/otr/htdocs # Deny most requests for any file <Directory /> Order Allow,Deny Deny From All Options -Indexes -ExecCGI -Includes DirectoryIndex index.shtml index.html </Directory> # Allow requests for files in document root <Directory /www/apachedft/otr/htdocs> order allow,deny allow from all <FilesMatch "\.shtml(\..+)?$"> Options +Includes SetOutputFilter Includes </FilesMatch> </Directory> <Directory /QSYS.LIB/QCGISRC.LIB> Options +ExecCGI Order Allow,Deny Allow From All </Directory> </VirtualHost> ************End of Data******************** On 11/26/06, Douglas W. Palme <dpalme@xxxxxxxxxxx> wrote:I am still having a problem getting virtual hosts configured. Below is a copy of our config file. What I need to be able to
accomplish
here is setting up named based virtual hosting so that we can run two separate domains using the same IP address.....any additional help would
be
appreciated.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.