|
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Donused by
Brown
Sent: Thursday, January 25, 2018 5:07 PM
To: Web Enabling the IBM i(AS/400 and iSeries)
Subject: Re: [WEB400] Multiple http servers for zendphp7
Ok this is well above my skill level!
I had to look SNI up to find it is Server Name Identification
I have a single PHP application running on IBMi at 7.2 and 7.3 that is
multiple entities and each entity requires a https connection withon this is
appropriate ssl certificate.
I have a deadline of 1st Feb to get this operational.
There is such a certificate as a SAN but getting specific information
seeming difficult. I tried calling the US and UK offices of GeoTrustand after
10 minutes + on hold to each I left a message and no replies as yet.supported on
And I can not find anything that specifically indicates this is
IBMi.certificate and just
While not totally great I can do this with a simple wildcard
put the entities accessing the site; for examplefredsaccounts.msd.net.au
and acmeaccounts.msd.net.au ... Etcetera.this in
Kevin: Thanks for the apache config - I will at some stage go through
detail and try and understand exactly what you are saying - like Isaid this is
way above my current skill level. Sorry but I really do notunderstand what
this is doing, it may be the perfect solution for my but I can'tvisualise the
network diagram or traffic flow.until you
Pete: I have read a lot about reverse proxies in this blog but again
actually work with one it is my old head that is struggling with theconcept. I
know nothing of letsEncrypt Ok scratch that they are a freeCertificate
provider WOW I will have to investigate this further in the future.So I am
struggling with the overview of how a reverse proxy will allow me tohave
multiple certificates as indicated above in what I am trying toachieve. As
much as I would love to be going to Sam Antonio this year just not inthe
budget (I did Orlando last year) but if you want a guinea pig to testyour
presentation on I can definitely assist :-)servers
So I am a little bit stuck.
Appreciate the assistance
Don Brown
From: "Kevin Bucknum" <Kevin@xxxxxxxxxxxxxxxxxxx>
To: "Web Enabling the IBM i\(AS/400 and iSeries\)"
<web400@xxxxxxxxxxxx>
Date: 25/01/2018 11:37 PM
Subject: Re: [WEB400] Multiple http servers for zendphp7
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
SNI works fine with zendserver on the i. I've been configuring apache
for so long, that I just do it now, and haven't had to look around forany kind
of instructions lately. Any basic walkthrough for setting up namedvirtual
hosts should work. To answer your other question about multipleyears ago,
certificates. I'm 90% sure that I had it working, but that was several
and the memory is fuzzy. I could try again real quick to see if itworks. There
are a couple of directives in the IBM apache implantation that aredifferent
from standard, and one of them controls the certificate used.SSLAppName
points to a name in the DCM which controls which certificate is used.As I
recall the only confusing thing was getting the application set up inthe DCM.
If you have issues setting it up, I can create a letsencrypt cert andtry and pop
a new named instance on my box. It would probably be tomorrow before Inamed
can do that however. Here is my current apache config with several
hosts running different code bases.Tue Apr
#s Configuration originally created by Create HTTP Server wizard on
11 01:53:18 CDT 2006 LoadModule proxy_module/usr/local/zendsvr6/etc/sites.d/zend-default-vhost-10080.conf
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule zend_enabler_module
/QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
LoadModule ibm_ssl_module /QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGM
Listen *:10081
NameVirtualHost *:10081
Listen *:10080
NameVirtualHost *:10080
DocumentRoot /www/zendsvr6/htdocs
DefaultFsCCSID 37
CGIJobCCSID 37
<VirtualHost *:10080>
Include
</VirtualHost>"User-Agent"
Listen *:443
Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -
IncludesNoExec -Indexes -MultiViews LogFormat "%h %l %u %t \"%r\" %>s
%b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog
logs/access_log combined SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0 SetEnvIf
"Java/1\.0" force-response-1.0 SetEnvIf "User-Agent" "RealPlayer 4\.0"37
force-response-1.0 SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0 DefaultFsCCSID
CGIJobCCSID 37XML
DirectoryIndex index.php index.html
CgiConvMode %%MIXED/MIXED%%
TimeOut 30000
KeepAlive Off
HotBackup Off
NameVirtualHost *:443
#AddCharset UTF-8 .utf8
#AddCharset utf-8 .utf8
#AddCharset utf-7 .utf7
AddCharset UTF-8 .htm .html .xml
# zend fastcgi
AddType application/x-httpd-php .php
AddHandler fastcgi-script .php
RewriteEngine on
<Directory />
Order Deny,Allow
Deny From all
</Directory>
# Allow requests for files in document root
<Directory /www/zendsvr6/htdocs>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /usr/local/zendsvr6/var/apps>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/medpmdemo>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/programming>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/kevin_dev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/waynehdev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/jeremyldev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/mounika_dev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/medpmweb>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<VirtualHost *:10081>
RedirectMatch ^/$ /ZendServer/
DocumentRoot /usr/local/zendsvr6/gui/public/ <Directory
/usr/local/zendsvr6/gui>
Options FollowSymLinks
AllowOverride None
order allow,deny
Allow from all
</Directory>
<Location /ZendServer>
order allow,deny
Allow from all
</Location>
Alias /ZendServer "/usr/local/zendsvr6/gui/public"
<Directory "/usr/local/zendsvr6/gui/public">
AllowOverride All
order allow,deny
Allow from all
</Directory>
</VirtualHost>
<Location /Zend5250Demos>
Order deny,allow
Allow from all
</Location>
<Location /Zend5250Login>
Order deny,allow
Allow from all
</Location>
Alias /Zend5250Demos /usr/local/zendsvr6/5250/demos Alias
/Zend5250Login /usr/local/zendsvr6/5250/Generator/Form
Alias /Zend5250Appl /usr/local/zendsvr6/5250/Welcome
<Directory "/www/zendsvr6/htdocs/Zend5250Emulator">
Options FollowSymLinks
AllowOverride All
</Directory>
IncludeOptional /usr/local/zendsvr6/etc/sites.d/globals-*.conf
IncludeOptional /usr/local/zendsvr6/etc/sites.d/vhost_*.conf
Listen 127.0.0.1:10083
NameVirtualHost 127.0.0.1:10083
<VirtualHost 127.0.0.1:10083>
Alias /UserServer /usr/local/zendsvr6/share/UserServer
DocumentRoot /usr/local/zendsvr6/share/UserServer
<Directory /usr/local/zendsvr6/share/UserServer>
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
#XML Toolkit http settings
ScriptAlias /cgi-bin/ /QSYS.LIB/ZENDSVR6.LIB/ <Directory
/QSYS.LIB/ZENDSVR6.LIB/> AllowOverride None order allow,deny allow
from all SetHandler cgi-script Options +ExecCGI </Directory> #End
Toolkit http settings#//LogMaint
#/* keep access logs 30 days, error logs 30 days, FastCGI logs 30 days
#/LogMaint logs/access_log 30 0 #/LogMaint logs/error_log 30 0
logs/error_zfcgi 30 0hour
#/ Maintain Logs at 3 am (0 = midnight, 23 = 11 pm, etc) #/ Set for an
when the server is active (i.e. not during an IPL or backup, forexample)
<Location /phpmyadmin>have
Order deny,allow
Allow from all
</Location>
<VirtualHost *:443>
ServerName dev.medtronsoftware.com
DocumentRoot /www/medpmweb/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName kevin.dev.medtronsoftware.com
DocumentRoot /www/kevin_dev/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName mounika.dev.medtronsoftware.com
DocumentRoot /www/mounika_dev/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName wayneh.dev.medtronsoftware.com
DocumentRoot /www/waynehdev/medpmweb/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName jeremyldev.medtronsoftware.com
DocumentRoot /www/jeremyldev/medpmweb/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName programming.medtronsoftware.com
DocumentRoot /www/programming/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName medpmdemo.medtronsoftware.com
DocumentRoot /www/medpmdemo/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Don
Brown
Sent: Thursday, January 25, 2018 3:20 AM
To: Web400@Midrange. Web400
Subject: [WEB400] Multiple http servers for zendphp7
I am trying to find a cheat sheet or step by step instructions to
multipleeach
http servers all running php.
Reason being I have 4 different domain names and to enable ssl on
Iany
need 4 http servers on 4 different ip addresses.options first.
I am also exploring SAN ssl certificates but want to explore both
Does anyone have multiple http servers providing php and are there
mailing listconcerns / problems that I should be aware of ?mailing list
Thanks for any assistance
IBMi V7R2 and V7R3
Don Brown
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx To subscribe,unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx To subscribe,unsubscribe,
or change list options,service.
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
__________________________________________________________
____________
This email has been scanned by the Symantec Email Security.cloud
For more information please visit http://www.symanteccloud.commailing list
__________________________________________________________
____________
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx To subscribe,unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
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.