0

I have some global directories, aliases and rewrite rules in my httpd.conf. They aplly to both 80 and 443.

Now I want to add an http proxy on port 3128. I don't want it to be affected by existing directives, so I try to surround them with:

<VirtualHost *:80 *:443>
...
</VirtualHost>

This doesn't work for 443, because there's already a VirtualHost defined in conf.d/ssl.conf:

<VirtualHost _default_:443>
...
</VirtualHost>

How to correctly share my custom directives so they apply to 80 and 443 and not 3128 with minimal editing?

basin
  • 558
  • 1
  • 5
  • 22

1 Answers1

0

Do not put theses rewrites and alias in the global configuration.

Instead, create a file containing this, and include it in you Vhosts 80 and 443 but not 3128.

mick
  • 735
  • 6
  • 7