带有代理和位置的 Apache 配置

带有代理和位置的 Apache 配置

我想将这些域映射到这些端口。我该怎么做?

http://test1.example.com/phpmyadmin/    example.com:80/phpmyadmin/
http://test1.example.com/app1/          example.com:8080/app1/
http://test1.example.com/app2/          example.com:8090/app2/

http://webmin.example.com/              example.com:10000/

这是我做的。问题是 phpmyadmin 不工作,它被转发到 glassfish。

webmin 正在运行,因为它是一个单独的域。

我如何将 phpmyadmin 映射到同一个域?http://test1.example.com/phpmyadmin/

谢谢

<VirtualHost *:80>
    ServerName              test1.example.com
    ProxyRequests           Off
    ProxyPreserveHost       On

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

    ProxyPass           /           http://localhost:8080/
    ProxyPassReverse    /           http://localhost:8080/

    ProxyPass           /admin/     https://localhost:4848/
    ProxyPassReverse    /admin/     https://localhost:4848/
</VirtualHost>

<VirtualHost *:80>
    ServerName      test1.example.com/phpmyadmin/
    DocumentRoot    /usr/share/phpmyadmin

    Alias           /phpmyadmin     /usr/share/phpmyadmin
    Alias           /mysql          /usr/share/phpmyadmin
</VirtualHost>

<VirtualHost *:80>
    ServerName              webmin.example.com
    ProxyRequests           Off
    ProxyPreserveHost       On

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

    ProxyPass           /               http://localhost:10000/
    ProxyPassReverse    /               http://localhost:10000/
</VirtualHost>

相关内容