Проблемы с Apache перенаправляют к www-снабженному-префиксом URL

netstat-lnt | grep 8080

tcp 0 0 127.0.0.1:8080 0.0.0.0:* ПОСЛУШАЙТЕ

netstat-lnt | grep 1521

tcp 0 0 127.0.0.1:1521 0.0.0.0:* ПОСЛУШАЙТЕ

netstat-lnt | grep 9080

tcp 0 0 0.0.0.0:9080 0.0.0.0:* ПОСЛУШАЙТЕ

Ну, возможно, я не был ясен: но оракул (1521) и (jboss+tomcat) 8080 работает, но только работает доступный через localhost.

Это - Ваш ответ: порты 1521 и 9080 только слушают на IP-адресе 127.0.0.1 (localhost). Никакой брандмауэр не включен.

Необходимо изменить конфигурацию тех сервисов для слушания на всех IP-адресах сервера. Я не знаю, как сделать это для Oracle.

0
задан 15 October 2012 в 17:59
2 ответа

Your apache RewriteRule will not work; also, do not use .htaccess files if you can avoid doing so.

The Redirect inside the mysite vhost is sufficient to have all requests end up at www.mysite.com.

However, the subsequent RewriteRule would rewrite everything to /index.php/$0 (literally), since $0 doesn't mean anything.

Why is nginx proxying everything to an apache backend ? What, exactly, does nginx add here ?

You should collect logs from apache (inspect both the access and the error logs) to determine what is happening.

0
ответ дан 4 December 2019 в 21:37

Just have nginx do the redirection instead of passing them up to Apache.

Example:

server {
   listen [::]:80;
   server_name example.com vip.example.com;
   return 301 $scheme://www.example.com$request_uri;
}

(Taken from my site www.yes-www.org)

1
ответ дан 4 December 2019 в 21:37

Теги

Похожие вопросы