Bug 491996

Summary: Yast ncurses doesn't write correctly HTTP Listen ports and interfaces in /etc/apache2/listen.conf
Product: [openSUSE] openSUSE 11.1 Reporter: Eduar Arley Cardona <eduar.cardona>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: listen.conf generated by YaST and screenshot

Description Eduar Arley Cardona 2009-04-03 18:47:51 UTC
Created attachment 284065 [details]
listen.conf generated by YaST and screenshot

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8

yast, in module http-server, doesn't write correctly ports and interfaces in archive /etc/apache2/listen.conf.

When I have 3 networks interfaces: lo, eth0 and eth1. My configuration is:
lo:   127.0.0.1 (loop)
eth0: 192.168.100.1 (internal)
eth1: 10.0.2.15 (external, DHCP)

I wanna use apache in lo aand eth0. In yast (ncurses), I add the interfaces in "Listen in ports", with port 80 in both, but in "/etc/apache2/listen.conf" i found:

listen 192
listen 127.0.0.1:80

So, apache listen in ALL interfaces, through port 192. I think yast just take first number in IP address.

Reproducible: Always

Steps to Reproduce:
1. Open YaST (ncurses) -> Network Services -> HTTP Server
2. HTTP Server Enabled
3. Listen in ports:
   - Add -> Port 80 -> Address 192.168.1.100
   - Add -> Port 80 -> Address 127.0.0.1
4. Finish
Actual Results:  
1. lynx 127.0.0.1 -> It works!
2. lynx 192.168.100.1 -> 
3. lynx 192.168.100.1:192 -> It works!

Expected Results:  
5. lynx 127.0.0.1 -> It works!
6. lynx 192.168.100.1 -> It works!
7. lynx 192.168.100.1:192 -> Unable to connect to remote host

openSuSE 11.1 i686 2.6.27.19-3.2-default
AMD Athlon 64 X2 6000+
Comment 1 Gabriele Mohr 2009-04-21 10:41:20 UTC
Starting yast -> Network Services -> HTTP Server on my 11.1 installation starts an HTTP-Server-Wizard workflow (not the configuration modul with tabs from the screenshot).
It seems to be an old version of the http-server module installed (version on 11.1 is yast2-http-server-2.17.5) and the bug might be a duplicate of #445460. Michal, could you please help here.
Comment 2 Gabriele Mohr 2009-04-23 08:59:34 UTC
Please check the version of the http-server module (rpm -qa yast2-http-server).
Comment 3 Gabriele Mohr 2009-04-30 08:43:23 UTC
Michal, do you agree with me that probably an old version of yast2-http-server is the cause of the problem?
Comment 4 Katarina Machalkova 2009-04-30 10:43:01 UTC
Most likely not ncurses problem .. some listen.conf issue was recently fixed, so this could well be a duplicate. 

Gabi:You see HTTP server workflow not because of old version of the module, but because it is the first time you're trying to configure Apache on your machine.
Comment 5 Michal Zugec 2009-04-30 10:53:16 UTC
Yes, this is yast2-http-server (not ncurses related) problem and already solved

*** This bug has been marked as a duplicate of bug 495429 ***