I believe my problem now stems from the default statements provided with the
webserver. See below, these statements come before my virtual server
statements.
<Directory />
Options FollowSymLinks - this is the original ibm setup.
AllowOverride None
FileETag All -INode
Require all denied - this is the original ibm setup
</Directory>
The error message in the logs files is: AH01630: client denied by server
configuration: /etc/websrv1/'
The browser message is:
You don't have permission to access / on this server.
IBM_HTTP_Server Server at test1 Port 80
It seems the ' Require all granted' in the virtual server statement maybe are
not being recognized.
# START Virtual host 1
<VirtualHost test1.com:80>
ServerName MVSTEST1.li.pch.com
DocumentRoot /etc/websrv1/PCHshare/
DirectoryIndex welcome.html
</VirtualHost>
<Directory /etc/websrv1/PCHshare/>
Require all granted
</Directory>
#
# START Virtual host 2
<VirtualHost test2:80>
ServerName MVSTEST2.li.pch.com
DocumentRoot /etc/websrv1/
DirectoryIndex welcome.html
</VirtualHost>
<Directory /etc/websrv1/PCHshare/>
Require all granted
</Directory>
#
Any help is appreciated with these directives, thanks Matt
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Neubert, Kevin
Sent: Tuesday, November 29, 2016 1:59 PM
To: [email protected]
Subject: Re: Apache Virtual Server Setup
No DocumentRoot in your VirtualHost?
<VirtualHost 12.1.1.12:80>
DocumentRoot /etc/websrv1/PCHshare
DirectoryIndex welcome.html
</VirtualHost>
<Directory /etc/websrv1/PCHshare>
# Access/Options Here
</Directory>
Regards,
Kevin
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Dazzo, Matt
Sent: Tuesday, November 29, 2016 8:56 AM
To: [email protected]
Subject: Apache Virtual Server Setup
I am trying to setup a virtual server on zos 2.2 apache http server. My intent
is to have anyone coming in on ip 12.1.1.12:80 to be directed to a welcome
page html. But I keep getting the access error below. I have tried many, many
different directive variations but no luck. Any examples or assistance is
appreciated. Thanks Matt
If this is not the correct forum for this please let me know. tks
# START Virtual Server 1 statements.
<VirtualHost 12.1.1.12:80>
#
<Directory "/etc/websrv1/PCHshare/">
DirectoryIndex welcome.html
<RequireAll>
Require all granted
</RequireAll>
</Directory>
</VirtualHost>
#
Forbidden
You don't have permission to access / on this server.
IBM_HTTP_Server Server at 27.1.39.74 Port 80
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN