сайт для прослушивания на порту 88

сайт для прослушивания на порту 88

Я хочу, чтобы один из моих сайтов прослушивал порт 88.

В ports.conf в /etc/apache2 на сервере Ubuntu я добавляю, чтобы веб-приложение могло прослушивать порт 88:

NameVirtualHost *:80
Listen 80

NameVirtualHost *:88
Listen 88

У меня в etc/apache2/apache2.conf есть следующее:

# Include the virtual host configurations:
Include sites-enabled/

В разделе «Включенные сайты» у меня есть файл, который выглядит так:

Listen *:88

NameVirtualHost *:88

<VirtualHost *:88>
  ServerName dogtracking.com
  DocumentRoot /home/doggps/public_html/eaglegps.com/current/public
  <Directory /home/doggps/public_html/eaglegps.com/current/public>
    AllowOverride all
    Options -MultiViews
  </Directory>

  <LocationMatch "^/assets/.*$">
    Header unset ETag
    FileETag None
    # RFC says only cache for 1 year
    ExpiresActive On
    ExpiresDefault "access plus 1 year"
  </LocationMatch>
</VirtualHost>

Затем я пробую перезапустить Apache:

/etc/init.d/apache2 restart

И я получаю:

* Restarting web server apache2                                                                                                                                                                                           /usr/sbin/apache2ctl: line 87: ulimit: open files: cannot modify limit: Operation not permitted
Warning: DocumentRoot [/home/xtreme/Sites/DogGPS-CMS] does not exist
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Oct 18 18:04:21 2012] [warn] NameVirtualHost *:88 has no VirtualHosts
/usr/sbin/apache2ctl: line 87: ulimit: open files: cannot modify limit: Operation not permitted
Warning: DocumentRoot [/home/xtreme/Sites/DogGPS-CMS] does not exist
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Oct 18 18:04:22 2012] [warn] NameVirtualHost *:88 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.

решение1

У вас есть две Listenдирективы для одной и той же комбинации IP-адреса/порта. Вторая директива не сработает, и Apache не сможет запуститься.

А вы sudoApache перезапускали?

Ошибки в разрешениях наводят меня на мысль, что вы этого не сделали.

Связанный контент