apache i zmiana na port 80
: 02 listopada 2008, 08:22
Apache chodził na porcie 443. Chcę aby chodził na porcie 80. Zmieniłem nazwę portu w pliku ports.conf i zrestartowałem apache ale to nic nie daje. Co jeszcze muszę zrobić?
Polski portal użytkowników dystrybucji Debian GNU/Linux, dyskusje, artykuły, nowości, blog, porady, pomoc.
https://www.debian.pl/
Kod: Zaznacz cały
grep 443 -r /etc/apache
Dobrze, ale co zrobić jeżeli httpd.conf jest pusty - jak to ma miejsce w moim przypadku?bbmti pisze:W pliku domeny możesz zmienić port, również w httpd.conf jest opcja Listen :80, zobacz co tam jest wpisane.
Kod: Zaznacz cały
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:81
Listen 81
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
Kod: Zaznacz cały
debian:/home/wojtas# /etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Jan 22 15:33:16 2010] [warn] NameVirtualHost *:81 has no VirtualHosts
... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Jan 22 15:33:19 2010] [warn] NameVirtualHost *:81 has no VirtualHosts.
Kod: Zaznacz cały
[Fri Jan 22 15:23:02 2010] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri Jan 22 15:23:02 2010] [notice] mod_python: using mutex_directory /tmp
[Fri Jan 22 15:23:03 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 co$
[Fri Jan 22 15:30:01 2010] [error] [client 192.168.1.3] File does not exist: /var/www/favicon.ico
[Fri Jan 22 15:33:18 2010] [notice] caught SIGTERM, shutting down
[Fri Jan 22 15:33:19 2010] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri Jan 22 15:33:19 2010] [notice] mod_python: using mutex_directory /tmp
[Fri Jan 22 15:33:20 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 co$
[Fri Jan 22 15:44:32 2010] [notice] caught SIGTERM, shutting down
[Fri Jan 22 15:49:09 2010] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri Jan 22 15:49:09 2010] [notice] mod_python: using mutex_directory /tmp
[Fri Jan 22 15:49:10 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 co$
Kod: Zaznacz cały
]Not Found[/h] The requested URL / was not found on this server.
Apache/2.2.16 (Debian) Server at 192.168.1.100 Port 1999