在本地主机上工作,在域上不工作。连接超时?

在本地主机上工作,在域上不工作。连接超时?

网站在 localhost:33333 上运行但如果我运行my.domain.com:33333my.domain.com不运行。(Connection timeout

可能是什么原因?

<VirtualHost *:33333>
ServerName my.domain.com
DocumentRoot /var/www/vtigercrm/
ErrorLog /var/log/apache2/vtiger.my.domain.com.error_log
CustomLog /var/log/apache2/vtiger.my.domain.com.access_log combined
<Directory /var/www/vtigercrm>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>

grep -iR listen /etc/apache2/输出:

/etc/apache2/ports.conf:Listen 33333
/etc/apache2/ports.conf:    Listen 443
/etc/apache2/ports.conf:    Listen 443
/etc/apache2/apache2.conf:#   supposed to determine listening ports for incoming connections, and which
/etc/apache2/apache2.conf:# Include list of ports to listen on and which to use for name based vhosts

/var/log/apache2/error.log

[Mon May 06 19:27:17 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.2 configured -- resuming normal operations
[Mon May 06 19:41:52 2013] [notice] caught SIGTERM, shutting down
[Mon May 06 19:41:53 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.2 configured -- resuming normal operations

iptables -L -nvhttp://wklej.org/hash/8f77aa0dbc6/

答案1

您的防火墙不允许端口 33333。运行:

sudo ufw allow 33333/tcp

将其打开。

相关内容