Re: apache with SSL (205 Views)
Reply
Trusted Contributor
kemo
Posts: 190
Registered: ‎02-09-2009
Message 1 of 6 (205 Views)

apache with SSL

Hello
any document to build Apache with only HTTPS.

system info:
============
1- HP-UX server B.11.31 U ia64 0958112782 unlimited-user license

2- httpd -l
Compiled in modules:
core.c
worker.c
http_core.c
mod_so.c

3- httpd -v
Server version: Apache/2.0.59 HP-UX_Apache-based_Web_Server
Server built: Apr 17 2009 20:45:10

THANKS
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 6 (205 Views)

Re: apache with SSL

Build? As in "compile"?

If you want to use HTTPS, you cannot remove the http_core.c module from the compile-time configuration. HTTPS is essentially HTTP + SSL, so the http_core.c is used with HTTPS too.

If you compile Apache from source code, there *is* a configuration option --disable-http, but it removes the entire http+https functionality: you would use this only to use Apache as a framework for some custom protocol, which would be a pretty advanced project.

But you can *configure* Apache to accept only HTTPS connections rather easily. Add this line to your main Apache server configuration:

SSLEngine on

Then check all Port and Listen directives in your configuration to make sure Apache is listening on appropriate port(s) only: for SSL, the standard port is 443, although you can use other ports too if you wish. (It is possible to set up HTTPS service in port 80 too, but it would confuse your users needlessly...)

Also make sure you don't specify "SSLEngine off" anywhere in your Apache configuration.

Of course, you must also set up appropriate SSL certificate(s) for your HTTPS service(s). If your service is for internal use only, you can probably use a self-signed certificate (or perhaps the installation process generated one automatically for you), but if you're setting up a public service, you may need an official certificate so that your users won't have to see warnings about the unreliability of your site's certificate.

The complete Apache web server documentation is available on the web:
http://httpd.apache.org/docs/2.0/

MK
MK
Trusted Contributor
kemo
Posts: 190
Registered: ‎02-09-2009
Message 3 of 6 (205 Views)

Re: apache with SSL

mod_ssl.c is not installed, or not enabled. how would i configure https without this module,
any suggestion on how to enable or add this module. i don't want to reinstall the webserver.
Trusted Contributor
kemo
Posts: 190
Registered: ‎02-09-2009
Message 4 of 6 (205 Views)

Re: apache with SSL

i meant by "build apache" --> have it work with SSL.
Sorry my mistake. i should have chosen different word than BUILD .
Trusted Contributor
Joel Girot
Posts: 84
Registered: ‎10-29-1998
Message 5 of 6 (205 Views)

Re: apache with SSL

Hello,

In your httpd.conf file :


LoadModule ssl_module modules/mod_ssl.so



Include conf/ssl.conf


for configuring Apache with SSL see this link :
http://onlamp.com/pub/a/onlamp/2008/03/04/step-by-step-configuring-ssl-under-apache.html

To start the HP-UX Apache-based Web Server with SSL capability (hpux 11.11):
/opt/hpws/apache/bin/apachectl startssl

Joel
Trusted Contributor
kemo
Posts: 190
Registered: ‎02-09-2009
Message 6 of 6 (205 Views)

Re: apache with SSL

thanks
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.