Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't redirect on ocf.b.e #1251

Merged
merged 5 commits into from
Feb 28, 2023
Merged

fix: don't redirect on ocf.b.e #1251

merged 5 commits into from
Feb 28, 2023

Conversation

singingtelegram
Copy link
Member

No description provided.

@singingtelegram
Copy link
Member Author

With the matrix .well-known commit, it's now possible to use @oski:www.ocf.berkeley.edu as username. However, since ocf.b.e returns 301 to www.o.b.e, discovery fails for @oski:ocf.berkeley.edu. This PR attempts to fix that by adding o.b.e as an alias of www.o.b.e.

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 12, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (80)


Changed hosts
diff for death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www-https-redirect] =>
   parameters =>
     directories =>
      + [{"path"=>"/.well-known/matrix/server", "provider"=>"location", "custom_fragment"=>"\n              Header set Access-Control-Allow-Origin \"*\"\n          "}, {"path"=>"/.well-known/matrix/client", "provider"=>"location", "custom_fragment"=>"\n              Header set Access-Control-Allow-Origin \"*\"\n          "}]
*******************************************
  Concat::Fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,15 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/server">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
      +
      +  <Location "/.well-known/matrix/client">
      +    Require all granted
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
  Concat_fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,15 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/server">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
      +
      +  <Location "/.well-known/matrix/client">
      +    Require all granted
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
volcano.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 12, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (80)


Changed hosts
diff for death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www] =>
   parameters =>
     serveraliases =>
      - ["dev-www.ocf.berkeley.edu"]
      + ["dev-www.ocf.berkeley.edu", "ocf.berkeley.edu"]
*******************************************
  Concat::Fragment[www-serveralias] =>
   parameters =>
     content =>
      @@ -2,2 +2,3 @@
         ## Server aliases
         ServerAlias dev-www.ocf.berkeley.edu
      +  ServerAlias ocf.berkeley.edu
*******************************************
  Concat_fragment[www-serveralias] =>
   parameters =>
     content =>
      @@ -2,2 +2,3 @@
         ## Server aliases
         ServerAlias dev-www.ocf.berkeley.edu
      +  ServerAlias ocf.berkeley.edu
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
volcano.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 12, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (80)


Changed hosts
diff for death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www-http-redirect] =>
   parameters =>
     redirectmatch_regexp =>
      - ^(.*)
      + ^((?!\/\.well-known\/matrix\/(client|server)).*)
*******************************************
  Apache::Vhost[www-https-redirect] =>
   parameters =>
     directories =>
      + [{"path"=>"/.well-known/matrix/server", "provider"=>"location", "custom_fragment"=>"\n              Header set Access-Control-Allow-Origin \"*\"\n          "}, {"path"=>"/.well-known/matrix/client", "provider"=>"location", "custom_fragment"=>"\n              Header set Access-Control-Allow-Origin \"*\"\n          "}]
*******************************************
  Concat::Fragment[www-http-redirect-redirect] =>
   parameters =>
     content =>
      @@ -1,3 +1,3 @@
      _
         ## RedirectMatch rules
      -  RedirectMatch 301  ^(.*) https://www.ocf.berkeley.edu$1
      +  RedirectMatch 301  ^((?!\/\.well-known\/matrix\/(client|server)).*) https://www.ocf.berkeley.edu$1
*******************************************
  Concat::Fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,15 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/server">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
      +
      +  <Location "/.well-known/matrix/client">
      +    Require all granted
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
  Concat_fragment[www-http-redirect-redirect] =>
   parameters =>
     content =>
      @@ -1,3 +1,3 @@
      _
         ## RedirectMatch rules
      -  RedirectMatch 301  ^(.*) https://www.ocf.berkeley.edu$1
      +  RedirectMatch 301  ^((?!\/\.well-known\/matrix\/(client|server)).*) https://www.ocf.berkeley.edu$1
*******************************************
  Concat_fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,15 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/server">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
      +
      +  <Location "/.well-known/matrix/client">
      +    Require all granted
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
volcano.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 12, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (80)


Changed hosts
diff for death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www-http-redirect] =>
   parameters =>
     redirectmatch_regexp =>
      - ^(.*)
      + ^((?!\/\.well-known\/matrix\/(client|server)).*)
*******************************************
  Apache::Vhost[www-https-redirect] =>
   parameters =>
     directories =>
      + [{"path"=>"/.well-known/matrix/server", "provider"=>"location", "custom_fragment"=>"\n              Header set Access-Control-Allow-Origin \"*\"\n          "}]
*******************************************
  Concat::Fragment[www-http-redirect-redirect] =>
   parameters =>
     content =>
      @@ -1,3 +1,3 @@
      _
         ## RedirectMatch rules
      -  RedirectMatch 301  ^(.*) https://www.ocf.berkeley.edu$1
      +  RedirectMatch 301  ^((?!\/\.well-known\/matrix\/(client|server)).*) https://www.ocf.berkeley.edu$1
*******************************************
  Concat::Fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,8 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/server">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
  Concat_fragment[www-http-redirect-redirect] =>
   parameters =>
     content =>
      @@ -1,3 +1,3 @@
      _
         ## RedirectMatch rules
      -  RedirectMatch 301  ^(.*) https://www.ocf.berkeley.edu$1
      +  RedirectMatch 301  ^((?!\/\.well-known\/matrix\/(client|server)).*) https://www.ocf.berkeley.edu$1
*******************************************
  Concat_fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,8 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/server">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
volcano.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 12, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (80)


Changed hosts
diff for death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www-http-redirect] =>
   parameters =>
     redirectmatch_regexp =>
      - ^(.*)
      + ^((?!\/\.well-known\/matrix\/(client|server)).*)
*******************************************
  Apache::Vhost[www-https-redirect] =>
   parameters =>
     directories =>
      + [{"path"=>"/.well-known/matrix/client", "provider"=>"location", "custom_fragment"=>"\n              Header set Access-Control-Allow-Origin \"*\"\n          "}]
*******************************************
  Apache::Vhost[www] =>
   parameters =>
     directories =>
      - [{"path"=>"/.well-known/matrix/server", "provider"=>"location", "custom_fragment"=>"\n            Header set Access-Control-Allow-Origin \"*\"\n        "}, {"path"=>"/.well-known/matrix/client", "provider"=>"location", "custom_fragment"=>"\n            Header set Access-Control-Allow-Origin \"*\"\n        "}, {"path"=>"/services/http/users", "provider"=>"directories", "directoryindex"=>"index.html index.cgi index.pl index.php index.xhtml index.htm index.shtm index.shtml", "options"=>["ExecCGI", "FollowSymLinks", "IncludesNoExec", "Indexes", "MultiViews", "SymLinksIfOwnerMatch"], "allow_override"=>["All"]}, {"path"=>"\\.(cgi|shtml|phtml|php)$", "provider"=>"filesmatch", "ssl_options"=>"+StdEnvVars"}, {"path"=>"\\.(php[3457]?|phtml|fcgi)$", "provider"=>"filesmatch", "sethandler"=>"fcgid-script"}, {"path"=>"/", "provider"=>"directories", "request_headers"=>"edit* Cookie (;?\\s*OCFWEB_.+?)=.+?(;|$) $1=REMOVED$2"}]
      + [{"path"=>"/.well-known/matrix/client", "provider"=>"location", "custom_fragment"=>"\n            Header set Access-Control-Allow-Origin \"*\"\n        "}, {"path"=>"/services/http/users", "provider"=>"directories", "directoryindex"=>"index.html index.cgi index.pl index.php index.xhtml index.htm index.shtm index.shtml", "options"=>["ExecCGI", "FollowSymLinks", "IncludesNoExec", "Indexes", "MultiViews", "SymLinksIfOwnerMatch"], "allow_override"=>["All"]}, {"path"=>"\\.(cgi|shtml|phtml|php)$", "provider"=>"filesmatch", "ssl_options"=>"+StdEnvVars"}, {"path"=>"\\.(php[3457]?|phtml|fcgi)$", "provider"=>"filesmatch", "sethandler"=>"fcgid-script"}, {"path"=>"/", "provider"=>"directories", "request_headers"=>"edit* Cookie (;?\\s*OCFWEB_.+?)=.+?(;|$) $1=REMOVED$2"}]
*******************************************
  Concat::Fragment[www-directories] =>
   parameters =>
     content =>
      @@ -2,11 +2,4 @@
         ## Directories, there should at least be a declaration for /services/http/users
      _
      -  <Location "/.well-known/matrix/server">
      -    Require all granted
      -____
      -            Header set Access-Control-Allow-Origin "*"
      -________
      -  </Location>
      -
         <Location "/.well-known/matrix/client">
           Require all granted
*******************************************
  Concat::Fragment[www-http-redirect-redirect] =>
   parameters =>
     content =>
      @@ -1,3 +1,3 @@
      _
         ## RedirectMatch rules
      -  RedirectMatch 301  ^(.*) https://www.ocf.berkeley.edu$1
      +  RedirectMatch 301  ^((?!\/\.well-known\/matrix\/(client|server)).*) https://www.ocf.berkeley.edu$1
*******************************************
  Concat::Fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,8 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/client">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
  Concat_fragment[www-directories] =>
   parameters =>
     content =>
      @@ -2,11 +2,4 @@
         ## Directories, there should at least be a declaration for /services/http/users
      _
      -  <Location "/.well-known/matrix/server">
      -    Require all granted
      -____
      -            Header set Access-Control-Allow-Origin "*"
      -________
      -  </Location>
      -
         <Location "/.well-known/matrix/client">
           Require all granted
*******************************************
  Concat_fragment[www-http-redirect-redirect] =>
   parameters =>
     content =>
      @@ -1,3 +1,3 @@
      _
         ## RedirectMatch rules
      -  RedirectMatch 301  ^(.*) https://www.ocf.berkeley.edu$1
      +  RedirectMatch 301  ^((?!\/\.well-known\/matrix\/(client|server)).*) https://www.ocf.berkeley.edu$1
*******************************************
  Concat_fragment[www-https-redirect-directories] =>
   parameters =>
     content =>
      @@ -2,7 +2,8 @@
         ## Directories, there should at least be a declaration for /var/www/html
      _
      -  <Directory "/var/www/html">
      -    Options Indexes FollowSymLinks MultiViews
      -    AllowOverride None
      +  <Location "/.well-known/matrix/client">
           Require all granted
      -  </Directory>
      +____
      +              Header set Access-Control-Allow-Origin "*"
      +__________
      +  </Location>
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
volcano.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

Copy link
Member

@Kalissaac Kalissaac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know we haven't tested this, but do we know if content gets served correctly on the root domain?

@Kalissaac
Copy link
Member

i guess there's only one way to find out anyways..

@singingtelegram singingtelegram merged commit 3c11088 into master Feb 28, 2023
@singingtelegram singingtelegram deleted the no-redirect-obe branch February 28, 2023 03:03
singingtelegram added a commit that referenced this pull request Apr 30, 2023
* fix: don't redirect on ocf.b.e

* fix: it's actually here, see if it works

* fix: it works

* fix: remove server cors

not necessary

* fix: wrong one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants