我的提供商一天前更新服务器(我不知道prev版本)。现在,重写不起作用,索引被包含、执行和重定向: -> (这是正确的),但在那之后我看到:
Not Found
The requested URL /index/index was not found on this server.
Apache/2.4.7 (Ubuntu) Server at testdomena.com Port 80
地址是正确的,在更新之前所有工作。
我的serwer看起来是这样的:
Ubuntu14.04.5LTS(GNU/Linux3.13.0-108-通用x86_64)
服务器版本: Apac
我想有阿帕奇服务的.htaccess文件,以修复火狐访问控制允许来源。我使用的是mod_wsgi,我的httpd.conf如下所示:
Alias /static/ /home/ubuntu/my-django-app/static/
<Directory /home/ubuntu/my-django-app/static>
Order deny, allow
Allow from all
</Directory>
WSGIScriptAlias / /home/ubuntu/my-django-app/apache/django.wsgi
我必须做什么才能让Apac
老实说,我几乎没有使用阿尔卑斯山Linux的经验,但我喜欢它的方法,因此我想改变这一点。我也是Docker的新手,所以如果这是一个“愚蠢”的问题,请容忍我。
我想要实现的是在httpd:alpine镜像的基础上构建并扩展HTTPd以满足我的需求。
这将包括激活mod_rewrite模块并将自定义.htaccess复制到映像中。
这是我到目前为止所知道的:
FROM httpd:alpine
# Copy .htaccess into DocumentRoot
COPY ./.htaccess /var/www/html/
RUN apk update
RUN apk upgrade
RUN
docker pull httpd
..
docker run -d --name MyWebServer httpd
..
docker attach MyWebServer
(nothing printed here - so I press enter + ls)
ls
(nothing printed here - so I press enter multiple times and still nothing..)
当我尝试用ubuntu图像做同样的事情时,它是有效的。为什么在这里不起作用?