aapche ssl certificate not working
i have just installed apache2 in Debian Squeeze, i am working on making ssl certification work in apache. so far i have gotten some commands going in httpd.conf file which is empty by default i am guessing that the contents of the httpd.conf take prescedence over the apache.conf file. i am wrong correct me
after reading all of the literature and resources i have gotten pretty far with this the command prompt never tells me that theres an error anymore i get the okay when the server starts, i created all of the files from openssl like this Code:
mkdir /etc/apache2/ssl Code:
|
Is there anything that comes up in your Apache error logs? Either from when you restart the Apache service or when you try to browse localhost?
|
no everything starts up and loads up fine like i didn't put the ssl module tag in the httpd.conf file, is there something wrong with the way i entered it in the file inside the 2nd code box. because i think it has something to do with my coding and not the server itself
or am i putting it in the wrong file, is it suppossed to go inside of /etc/apache2/apache.conf instead of /etc/apache2/httpd.conf |
|
I can see that the fellow developers at Debian have found a way to simplify the certification creation and the installation of the modules processes for us but as for getting the server to communicate with ssl requests is a something that has to be done by hand but all i want to know is since it is saying to put all of these commands at the end inside of a virtualhost declaration then where do i put it in if i want it to effect the main host instead of a virtual one would it be like this
/etc/apache2/httpd.conf Code:
NameVirtualHost *:443 |
Quote:
BTW debian uses /etc/apache2/apache2.conf as the main config file. /etc/apache2/httpd.conf is kept for compatibility and its included in apache2.conf, so you can add your stuff there, if you want. Regards |
Quote:
and do i need to provide some redirection options to make it go from http to https when i try to access the web site or will it do it automatically if i try to access it with what we covered so far? |
Quote:
Quote:
Regards |
i just went through the steps and i can't run the command
Code:
apache2-ssl-certificate i am also not getting the certificate prompt yet again, so is there an issue with the firewall also is there a way to automatically generate a rewrite tag that will re-direct the default web website to the default-ssl website |
Quote:
Quote:
Quote:
Code:
RewriteEngine on |
Quote:
|
Quote:
Mind that you need to put the rewrite stuff into the vhost that runs on port 80 (not the secure on port 443, obviously) Regards |
and i also see that you specified stuff like "HTTP_HOST" and "REQUEST_URI" are these suppossed to be filled in with something different or leave them as is
and did you make a typo in "REQUEST_URI" i think that I is suppossed to be an L |
Quote:
I suggest you to have a look at mod_rewrite documentation. Regards |
so on my localhost config document i would have to put those entries in it (since the /etc/apache2/sites-available/default is the config file for the local host) you want me to put those rewrite entries somewhere in it. and this can be used to redirect the default 80 port service to port 443 and make it go to the https location. the example you have given was a little vague so i want to know how to do it in my case as an example (and i can go on referencing from the example hopefully by then i would have mastered this module) here are my specs
ip address - 192.168.1.101 netmask - 255.255.255.0 gateway - 192.168.1.1 operating system - Debian Squeeze config file locations /etc/apache2/httpd.conf /etc/apache2/sites-available/default /etc/apache2/sites-available/default-ssl |
All times are GMT -5. The time now is 02:29 AM. |