You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ed...@ita.org.mo on 2007/09/22 07:54:18 UTC

[users@httpd] Single IP address + http + https +Virtual Host

Dear All,

Is there an sample config as the title ?

Thanks !

Edward.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Single IP address + http + https +Virtual Host

Posted by Rachel Anderson-Barrios <rb...@fimacsolutions.com>.
Edward,

***.***.***.38 needs to be the machine's internal ip address

----  http.conf ----
~snip~
ServerRoot "/etc/httpd"
~snip~
Listen 80
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
~snip~
ServerName randerson
~snip~
DocumentRoot "/home/httpd/riskanalyticsinc/ramain"
~snip~
<Directory "/home/httpd/riskanalyticsinc/ramain">
~snip~
<VirtualHost ***.***.***.38:80>
    ServerAdmin webmaster@my-host.com
    DocumentRoot /home/httpd/riskanalyticsinc/ramain
    ServerName randerson
    JkMount /*.xsp ajp13
    JkMount /*.xxsp ajp13
    JkMount /*.xml ajp13
    Alias /clients "/home/httpd/riskanalyticsinc/clients"
    Alias /ramain "/home/httpd/riskanalyticsinc/ramain"
</VirtualHost>
#
#
# Definition for the localhost
#
<VirtualHost 127.0.0.1>
    ServerAdmin webmaster@riskanalyticsinc.com
    DocumentRoot /home/httpd/riskanalyticsinc/ramain
    ServerName localhost
    Alias /clients "/home/httpd/riskanalyticsinc/clients"
    Alias /ramain "/home/httpd/riskanalyticsinc/ramain"
</VirtualHost>

---- end http.conf ----
---- ssl.conf ----
~snip~
Listen 443
~snip~
<VirtualHost ***.***.***.38:443>
    ServerAdmin webmaster@my-host.com
    DocumentRoot /home/httpd/riskanalyticsinc/ramain
    ServerName randerson
    JkMount /*.xsp ajp13
    JkMount /*.xxsp ajp13
    JkMount /*.xml ajp13
    Alias /clients "/home/httpd/riskanalyticsinc/clients"
    Alias /ramain "/home/httpd/riskanalyticsinc/ramain"
    SSLEngine on
    SSLCertificateFile /etc/httpd/conf/randerson.crt
    SSLCertificateKeyFile /etc/httpd/conf/randerson.key
</VirtualHost>
##
## SSL Virtual Host Context
##
<VirtualHost _default_:443>

#  General setup for the virtual host
DocumentRoot "/var/www/html"
ServerName new.host.name:443
ServerAdmin you@your.address
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
~snip~
</VirtualHost>           
---- end ssl.conf ----

Sincerely,
-Rachel



On Fri, 2007-09-21 at 23:54, edwardspl@ita.org.mo wrote:
> Dear All,
> 
> Is there an sample config as the title ?
> 
> Thanks !
> 
> Edward.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org