Fórum Root.cz

Hlavní témata => Server => Téma založeno: rado3105 20. 02. 2012, 11:31:09

Název: Apache virtual host na porte 44444
Přispěvatel: rado3105 20. 02. 2012, 11:31:09
Potreboval by som aby sa na urcitu stranku vo /var/www napr. /var/www/stranka pristupovalo zadanm ip:44444.
Do /etc/apache2/apache2.conf  som doplnil:

Citace
# Include ports listing
Include ports.conf
Listen 80
Listen 44444

Citace
<VirtualHost *:44444>
  ServerName stranka
  DocumentRoot /var/www/stranka
</VirtualHost>

po restarte mi ukazuje tuto chybu:

Citace
/etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 10.10.10.10 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 10.10.10.10 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:44444
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!

VIete poradit? dakujem....


Název: Re:Apache virtual host na porte 44444
Přispěvatel: Joe 20. 02. 2012, 12:56:56
Kdyz nevis jak ve virtual hostu pouzivat *, tak ji nepouzivej.
Hod vystup netstat -anp
Název: Re:Apache virtual host na porte 44444
Přispěvatel: PCnity 20. 02. 2012, 13:58:38
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:44444

Nieco ti obsadzuje 6-80 a 4-44444.
Název: Re:Apache virtual host na porte 44444
Přispěvatel: PCnity 20. 02. 2012, 13:59:30
Co mas inak v /etc/apache2/ports.conf
Název: Re:Apache virtual host na porte 44444
Přispěvatel: davidb 24. 02. 2012, 08:29:06
killall -9 apache2; /etc/init.d/apache2 start; netstat -ltunp|grep -i ste     ???

a kdyztak sem pastni vystup z
tail -30 /var/log/apache2/error.log