How can I configure Virtual host for mod_plsql in Oracle HTTP Server [message #610373] |
Wed, 19 March 2014 10:49 |
 |
mamunbb
Messages: 1 Registered: March 2014 Location: Dhaka, Bangladesh
|
Junior Member |
|
|
Hi
I have configured virtual host in apache httpd.conf and it works fine. Configuration is as follows
Quote: # virtual host 1
NameVirtualHost 192.168.100.93:7778
<VirtualHost 192.168.100.93:7778>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot "/usr/local/apache2/docs/dummy-host.example.com"
DocumentRoot "d:\test\site1"
ServerName index.html
# ServerAlias www.dummy-host.example.com
# ErrorLog "logs/dummy-host.example.com-error_log"
# CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>
# virtual host 2
NameVirtualHost 192.168.100.45:7778
<VirtualHost 192.168.100.45:7778>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot "/usr/local/apache2/docs/dummy-host.example.com"
DocumentRoot "d:\test\site2"
ServerName index.html
# ServerAlias www.dummy-host.example.com
# ErrorLog "logs/dummy-host.example.com-error_log"
# CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>
My PC has 2 IP configured.
in web browser with link http://192.168.100.93:7778/index.html shows website 1
and with link http://192.168.100.45:7778/index.html shows website 2
This is a simple test and I think it will work for php etc.
But my requirement is different
I have 5 Apex application running in production environment, I like to create a test scenario in my PC so that I can load balance among the dedicated IPs for all request to my Apex Application.
DADS.conf file is as follows:
Quote: Alias /i/ "D:\orahttp11\Oracle_WT1\instances\instance1\config\OHS\ohs2\htdocs\images/"
AddType text/xml xbl
AddType text/x-component htc
<Location /pls/apex>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None
PlsqlDatabaseUsername APEX_PUBLIC_USER
PlsqlDatabasePassword Abcd1234
PlsqlDatabaseConnectString 17705786l:1521:orcl
PlsqlAuthenticationMode Basic
PlsqlDefaultPage apex
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
</Location>
Now how can I relate DADS Location with virtual host configuration.
Thanks and Regards
Hasan Al Mamun
|
|
|