Always listen port 80

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Always listen port 80

Postby juampa » 06. September 2010 22:17

Hello, I've installed XAMPP today (xampp-linux-1.7.3a) on Ubuntu 8.10. I made some changes and still don't understand why apache listen on Port 80:

httpd.conf
Code: Select all
#Listen 80
Listen 8000
NameVirtualHost localhost:85
NameVirtualHost localhost:8000

<VirtualHost localhost:85>
   ServerName localhost1
   DocumentRoot "/opt/lampp/htdocs"
</VirtualHost>

<VirtualHost localhost:8000>
   ServerName localhost2
   DocumentRoot "/opt/lampp/htdocs/dominio-8000"
</VirtualHost>


I atach two images:
1) The first shows opened ports, you can see both 80 and 8000. Why 80?!! Of course port 85 wasn't opened because <VirtualHost localhost:85> doesn't tell Apache which port open (that instruction is given by Listen, yes/no?)
2) The second shows all ports related to XAMPP closed.

Is Port 80 always opened when XAMPP start Apache?
There exists another config file? OBS: I comment all lines of httpd-vhosts.conf too.

Thanks in advance and sorry my English please.



Image Image
juampa
 
Posts: 2
Joined: 06. September 2010 21:30

Re: Always listen port 80

Postby JonB » 10. September 2010 16:58

Two things:

A - read this carefully and you will see you missed soemthing -

http://httpd.apache.org/docs/current/mo ... tml#listen

B - 'Open' means 'free' or 'avaialable' - not 'active' in this sense. 'listen' means the port is 'active' (the port is lsitening for activity)

When the operating system reports a port is open, it really means that the port is currently available to be assigned. When a port is assigned to a program, the port said to be 'listening for activity'.

Software utility programmes for port checking report the services commonly associated to each port number for ease of reference. The fact a service is listed only means that is a 'well known port'

Cuando el sistema operativo informes un puerto está abierto, lo que realmente significa que el puerto está actualmente disponible para ser asignado. Cuando un puerto está asignado a un programa, el puerto se dice que «la escucha de actividad».

Programas informáticos de utilidad para el control de puertos informe de los servicios comúnmente asociadas a cada número de puerto para facilitar su consulta. El hecho está en la lista de un servicio sólo significa que es un "puerto conocido"

Buena suerte con su proyecto

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Always listen port 80

Postby juampa » 16. September 2010 01:48

Thank you very much JonB!

Muchas gracias por la info y el aliento a seguir!
juampa
 
Posts: 2
Joined: 06. September 2010 21:30

Re: Always listen port 80

Postby JonB » 16. September 2010 20:44

no problemo

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 51 guests