apache重定向端口从8000到80

时间:2019-06-29 01:08:50

标签: apache redirect

我正在尝试将URL从http://10.11.12.221:8000/重定向到http://10.11.12.221/index.html从端口8000到80。我在self.env = Environment(loader=FunctionLoader(self.loader), extensions=['jinja2htmlcompress.HTMLCompress'], **kwargs)文件中执行了以下操作,但是没有用。

ports.conf

我也尝试以下方法,但也无法正常工作。

Listen 80
Listen 8000

<VirtualHost *:8000>
    redirect / http://10.11.12.221/index.html
</VirtualHost>

为什么有什么主意?非常感谢!!!

0 个答案:

没有答案