Howdy gang,
Two questions...
1. Is there a way in the new / 5.6 httpd to have a server answer for
multiple names similar to apache ServerAlias ?
This is great in httpd:
server "www.example.com" {
listen on egress port 80
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
directory { index "index.html" }
}
...but after dozens of tries with parens, commas, etc., it seems like each
domain.com requires its own complete entry whereas it was done like this in
apache:
<VirtualHost *:80>
ServerName www.example.com
ServerAlias www.example2.com
...
</VirtualHost>
2. And for the next item up for bid: website-level 301s.
With apache we did 301s thusly:
<VirtualHost *:80 >
ServerName example.com
Redirect 301 / http://www.example.com/
</VirtualHost>
What's the right way to do that now?
Thanks,
Kevin