apache 2.2.15サーバーのhttpd.confファイルでさまざまな設定を試してみましたが、私の問題を解決できませんでした。だから私はGuruから助けを得るためにここにそれを掲示しています。Apache 2.2.15のCentOS 6で仮想ホストにアクセスできない
この設定は、CentOS 6.7サーバーの/etc/httpd/conf/httpd.confにあります。
Listen 80
Listen 8080
<VirtualHost *:8080>
ServerName example.com (Corrected after the comment)
DocumentRoot /var/www/dbgui
ErrorLog logs/dbgui-8080-error_log
<Directory /var/www/dbgui>
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/laravel/public
ErrorLog logs/example-80-error_log
<Directory /var/www/laravel>
AllowOverride All
</Directory>
</VirtualHost>
私はhttp://example.comを参照するとき、私はLaravelのページを取得する(予想通り)が、私はhttp://example.com:8080を参照するとき、私はがを「接続がタイムアウトしている」を得ます。
私はすでに私は、ログには何も表示されていないIPテーブル
output of netstat -nltup
tcp 0 0 :::8080 :::* LISTEN 13097/httpd
tcp 0 0 :::80 :::* LISTEN 13097/httpd
と
Output of iptables -L -nv
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
669 41648 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
に8080のポートを開いています。 Apacheがポート8080でリッスンしているように見えますが、何も通過せずポート8080でログに記録されません。
この問題を解決するための提案はありますか?
iptablesを変更した後、ネットワークを再起動しましたか? – Zak
ポート8080で「私は何も得られません」についてより具体的に記述できますか?あなたはどんな具体的なエラーですか? –
はい、私はiptablesサービスを開始しました。 「接続にタイムアウトがあります」というメッセージが表示される – Tempo