hi all,

Question #1:

i am currently working on having a secured site by installing openssl and 
mod_ssl with apache. to start apache, i type in the command:

/var/lib/apache/bin/apachectl startssl

if i edit httpd.conf, will i use the same command to restart apache again? 
because with a standard apache installation, i use apachectl to start my 
apache the first time and if i do some editing on my httpd.conf, i now use 
the command "/var/lib/apache/bin/httpd -f /var/lib/apache/conf/httpd.conf" 
to restart my apache. are they the same?

Question #2:

starting apache without ssl support, my virtually hosted site works fine. 
meaning, the files needed to show the contents of the web page can be 
accessed as defined in the DocumentRoot and ScriptAlias locations of my 
virtually hosted site. but, when i start apache with ssl support, the 
DocumentRoot and ScriptAlias directives are now ignored. error messages in 
my log file shows that the graphics and cgi scripts are being looked at the 
default directories, which are at htdocs and cgi-bin respectively. i dont 
know if im missing something since i cant find a documentation showing the 
details for a virtually hosted site with ssl config. pasted below is my 
virtual host directive:

<VirtualHost www.mydomain.com:443>

SSLEngine on
SSLCertificateFile /var/lib/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /var/lib/apache/conf/ssl.key/server.key

ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/lib/apache/htdocs/mysite
ServerName www.mysite.ph
ErrorLog logs/mysite-error_log
TransferLog logs/mysite-access_log

AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml

ScriptAlias /cgi-bin/ /var/lib/apache/htdocs/mysite/cgi-bin/

<Directory "/var/lib/apache/htdocs/mysite/html">
AllowOverride all
Options Indexes Includes FollowSymlinks
Allow from all
</Directory>

</VirtualHost>

i have configured my apache to listen to ports 80 and 443.

hoping for inputs. thanks a lot.

raymond


-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to