Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu Jun 17, 2004 9:52 am 
Offline
Senior Newbie

Joined: Thu Jun 10, 2004 6:06 am
Posts: 19
Location: Ireland
OK, I still haven't got this working yet.

So far I've generated a self signed cert as per the links above. I've installed it and apache works and reports no associated problems. After a system reboot, my apache error log reports the following:

[Thu Jun 17 09:08:12 2004] [info] mod_unique_id: using ip addr 65.19.178.177
[Thu Jun 17 09:08:12 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Thu Jun 17 09:08:13 2004] [warn] pid file /var/run/apache.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Jun 17 09:08:13 2004] [info] mod_unique_id: using ip addr 65.19.178.177
[Thu Jun 17 09:08:13 2004] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Thu Jun 17 09:08:13 2004] [info] created shared memory segment #0
[Thu Jun 17 09:08:14 2004] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux mod_ssl/2.8.9 OpenSSL/0.9.6g configured -- resuming normal operations
[Thu Jun 17 09:08:14 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Jun 17 09:08:14 2004] [info] Server built: Oct 26 2002 09:15:15
[Thu Jun 17 09:08:14 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)


http://li5-177.members.linode.com/ works fine, but
https://li5-177.members.linode.com/ reports "Cannot find server or DNS Error" in IE (perhaps another browser may report different).

Perhaps the problem exists in my httpd.conf and they way I have the SSL configured there? I setup a virtual server running on port 443 like so:

<VirtualHost *:443>
DocumentRoot /var/www
ServerName li5-177.members.linode.com
#SSLEnable
SSLCertificateFile /etc/apache/serv.crt
SSLCertificateKeyFile /etc/apache/serv.key
SSLEngine on

<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
</Files>
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"
<Directory "/usr/lib/cgi-bin">
SSLOptions +StdEnvVars
AllowOverride None
Options FollowSymLinks
SSLRequireSSL
#Order allow,deny
#isp.net intranet only. Could easily be extended to certain workstations
#(users) or class C's easily
#Allow from 192.168.0
</Directory>
LogLevel debug

</VirtualHost>


Any further suggestions please? :)


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2004 4:40 pm 
Offline

Joined: Thu Jun 17, 2004 4:32 pm
Posts: 1
Check your suexec.log. The information in this log may be more useful than the apache log. I'm not sure where it is located with Debian. You can run the command "suexec -V" and see where it is located at. Here are the results from my execution:

-D AP_DOC_ROOT="/home"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"

Note that I had to rebuild the SRPM for httpd so that suexec would work with my webmin installation.


Top
   
 Post subject:
PostPosted: Thu Jun 17, 2004 8:24 pm 
Offline
Junior Member

Joined: Fri Sep 12, 2003 10:10 am
Posts: 33
perhaps you need to:

apt-get install libapache-mod-ssl


Top
   
 Post subject:
PostPosted: Fri Jun 18, 2004 4:25 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Firefox reports:

Quote:
The connection to li5-177.members.linode.com has terminated unexpectedly. Some data may have been transferred.


Is the virtual server's DocumentRoot inside the main server's DocumentRoot? If not, you may need to specifically enable access to /var/www in the virtual server config. Usual default setting is for apache to deny everything to everybody and then allow things in the DocumentRoot. Outside the main DocumentRoot you need (for example)

Code:
<Directory /path/somedirectory>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Thu Jul 01, 2004 5:02 am 
Offline
Senior Newbie

Joined: Thu Jun 10, 2004 6:06 am
Posts: 19
Location: Ireland
Just as a follow up to this, I got it working in the end :)

All that was missing was an entry for port 443 in the 'listen' section of the Apache config file (even though I has specified that in Webmin). For something so small, it really wasted so much of my time! Ah well, I've learned a lot in the process.

Thanks guys for all your assistance :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group