
내 사이트 중 하나가 포트 88에서 수신 대기하도록 하고 싶습니다.
우분투 서버의 /etc/apache2에 있는 ports.conf에 웹 앱이 포트 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>
그런 다음 아파치를 다시 시작하려고 합니다.
/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를 시작할 수 없습니다.
또한 Apache를 다시 시작하셨나요 sudo
?
권한 오류로 인해 귀하가 권한을 부여하지 않았다고 생각하게 됩니다.