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?

  • Did you tried * instead of default ? Can you post more informations (Alias & rewrites) ? – Froggiz Dec 7 '15 at 10:29
  • @Froggiz I did. – basin Dec 7 '15 at 10:58
  • You can try to remove the ServerName & Alias from default:443 configuration. Can you post more informations (Alias & rewrites & SSL) ? – Froggiz Dec 7 '15 at 11:10
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.