Hi, I have apache2 running, with ssl. now, if i call my domain in a browser not using https, i cannot connect. ps aux shows this: root 59847 0.0 4.3 7528 4544 ?? Ss 5:34PM 0:12.11 /usr/local/sbin/httpd -DSSL www 59848 0.0 6.5 9368 6888 ?? I 5:34PM 0:03.80 /usr/local/sbin/httpd -DSSL www 59849 0.0 5.9 8856 6292 ?? I 5:34PM 0:01.92 /usr/local/sbin/httpd -DSSL www 59850 0.0 6.5 9364 6876 ?? I 5:34PM 0:04.55 /usr/local/sbin/httpd -DSSL www 59852 0.0 6.0 8880 6332 ?? I 5:34PM 0:01.60 /usr/local/sbin/httpd -DSSL www 59862 0.0 5.9 8852 6292 ?? I 5:37PM 0:03.14 /usr/local/sbin/httpd -DSSL www 59931 0.0 5.1 8072 5436 ?? S 5:49PM 0:02.60 /usr/local/sbin/httpd -DSSL www 59935 0.0 6.1 9312 6428 ?? I 5:50PM 0:01.89 /usr/local/sbin/httpd -DSSL www 60152 0.0 5.3 8168 5652 ?? I 6:41PM 0:00.39 /usr/local/sbin/httpd -DSSL www 60153 0.0 4.5 7728 4748 ?? I 6:41PM 0:00.55 /usr/local/sbin/httpd -DSSL www 60154 0.0 5.2 8100 5504 ?? I 6:41PM 0:00.31 /usr/local/sbin/httpd -DSSL does this mean, that my apache just runs in ssl-mode??? tcp46 0 0 *.https *.* LISTEN tcp46 0 0 *.http *.* LISTEN ...not really.... do i have to create a virtual server if i use ssl? Roger
On Jul 28, 2005, at 8:58 AM, Roger Grosswiler wrote:> Hi, > > I have apache2 running, with ssl. now, if i call my domain in a > browser > not using https, i cannot connect.Try adding port 80 to your Listen statement(s) in httpd.conf. Also make sure you have virtual hosts that capture requests on port 80. /Eirik> > ps aux shows this: > > root 59847 0.0 4.3 7528 4544 ?? Ss 5:34PM 0:12.11 > /usr/local/sbin/httpd -DSSL > www 59848 0.0 6.5 9368 6888 ?? I 5:34PM 0:03.80 > /usr/local/sbin/httpd -DSSL > www 59849 0.0 5.9 8856 6292 ?? I 5:34PM 0:01.92 > /usr/local/sbin/httpd -DSSL > www 59850 0.0 6.5 9364 6876 ?? I 5:34PM 0:04.55 > /usr/local/sbin/httpd -DSSL > www 59852 0.0 6.0 8880 6332 ?? I 5:34PM 0:01.60 > /usr/local/sbin/httpd -DSSL > www 59862 0.0 5.9 8852 6292 ?? I 5:37PM 0:03.14 > /usr/local/sbin/httpd -DSSL > www 59931 0.0 5.1 8072 5436 ?? S 5:49PM 0:02.60 > /usr/local/sbin/httpd -DSSL > www 59935 0.0 6.1 9312 6428 ?? I 5:50PM 0:01.89 > /usr/local/sbin/httpd -DSSL > www 60152 0.0 5.3 8168 5652 ?? I 6:41PM 0:00.39 > /usr/local/sbin/httpd -DSSL > www 60153 0.0 4.5 7728 4748 ?? I 6:41PM 0:00.55 > /usr/local/sbin/httpd -DSSL > www 60154 0.0 5.2 8100 5504 ?? I 6:41PM 0:00.31 > /usr/local/sbin/httpd -DSSL > > does this mean, that my apache just runs in ssl-mode??? > > tcp46 0 0 *.https *.* > LISTEN > tcp46 0 0 *.http *.* > LISTEN > > > ...not really.... > > do i have to create a virtual server if i use ssl? > > Roger > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable- > unsubscribe@freebsd.org" > > >
> > Try adding port 80 to your Listen statement(s) in httpd.conf. Also makesure you have virtual hosts that capture requests on port 80.> > /Eirik >i did a file called virtual.conf in /usr/local/etc/apache2/Include with this content: <VirtualHost *:80> ServerName freebsd.domain.net ServerAlias freebsd.domain.net DocumentRoot /usr/local/www/data </VirtualHost> ...which should be loaded on startup. Also, i activated NameVirtualHost *:80 in httpd.conf - still no success...whats up here? firewall is open, redirecting on router is well...but still no success... :-( Roger
Roger Grosswiler wrote:> i did a file called virtual.conf in /usr/local/etc/apache2/Include with > this content: > > <VirtualHost *:80> > ServerName freebsd.domain.net > ServerAlias freebsd.domain.net > DocumentRoot /usr/local/www/data > </VirtualHost> > > ...which should be loaded on startup. Also, i activated > > NameVirtualHost *:80 > > in httpd.conf - still no success...whats up here? firewall is open, > redirecting on router is well...but still no success... > > :-( RogerTry checking it using telnet: # telnet freebsd.domain.net 80 GET / HTTP/1.1 Host:freebsd.domain.net [ .. twice enter here .. ] and see if it gives you a clue -Uzi -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2757 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050728/7a947009/smime.bin
Roger Grosswiler wrote:>>Try adding port 80 to your Listen statement(s) in httpd.conf. Also make >> >> >sure you have virtual hosts that capture requests on port 80. > > >>/Eirik >> >> >> >i did a file called virtual.conf in /usr/local/etc/apache2/Include with >this content: > ><VirtualHost *:80> >ServerName freebsd.domain.net >ServerAlias freebsd.domain.net >DocumentRoot /usr/local/www/data ></VirtualHost> > >...which should be loaded on startup. Also, i activated > >NameVirtualHost *:80 > >in httpd.conf - still no success...whats up here? firewall is open, >redirecting on router is well...but still no success... > >Did you try to port scan the box? Regards S.
>> Are you sure you are looking at the right logfile? >> try to grep your logs for that request: >> >> # grep "GET /HTTP/1.0" /var/log/httpd* >> >> perhaps you got a conflict in vhosts config? >> >> -Uzi > yes, i am. because now, i can access port 80 from my internal network - > but not from the external. but even if a firewall is installed, i have > just one nic installed and i make no difference from the source. Perhaps, > my apache doesn't listen alright...i don't know. > > Roger > > > > ...in each case, i thank you all for your support. perhaps i gonna correct > this again in this life. if not, i don't hope to get on this planet as an > animal in a medicinal research station ;-) > > Roger >