Перенаправление HTML выходит с Apache2

Я действительно завишу от использования, но я выполняю ту партию в 240 МБ без любых проблем. Являются 300 МБ всеми процессами или главным образом дисковым кэшем и буферами? Linux будет продолжать использовать память для дискового кэша, пока это все не уведут.

1
задан 13 November 2013 в 03:15
1 ответ

So as far as Apache reeves prosing goes, do you have these settings in place as well?

# Proxy specific settings
ProxyRequests Off
ProxyPreserveHost On

The reason I ask is that the error is based on a JavaScript file not loading. And CORS will not allow JavaScript to load content from the same domain. And ProxyPreserveHost would preserve example.com when making a request to www.example.com:8001 or www.example.com:8002

EDIT: Going to attempt a more specific example. I suggest you redo your proxy logic & try this.

# Settings for adding a trailing slash to the URL
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(demo)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}$1/ [R=301,L]

# Settings for Apache Reverse Proxying
<IfModule mod_proxy.c>

  # Proxy specific settings
  ProxyRequests Off
  ProxyPreserveHost On

  <Proxy *>
    AddDefaultCharset off
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass /demo/vader http://www.example.com:8001/  
  ProxyPassReverse /demo/vader http://www.example:8001/  

  ProxyPass /demo/skywalker http://www.example.com:8002/  
  ProxyPassReverse /demo/skywalker http://www.example.com:8002/

</IfModule>
0
ответ дан 4 December 2019 в 08:58

Теги

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