Re: Single IP address + http + https +Virtual Host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
    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@xxxxxxxxxxxxxxxxxxxx
    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@xxxxxxxxxxx
    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@xxxxxxxxxxxx
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@xxxxxxxxxx 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux