This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/kafka-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 0534d640a KAFKA-18939 kafka-site preview does not use the correct
rewrite rules (#665)
0534d640a is described below
commit 0534d640a9b2593e4be2e182f2d2522841671815
Author: Ken Huang <[email protected]>
AuthorDate: Fri Mar 7 22:04:06 2025 +0800
KAFKA-18939 kafka-site preview does not use the correct rewrite rules (#665)
Reviewers: Chia-Ping Tsai <[email protected]>
---
Dockerfile | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 37e2f4708..dba83de52 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,14 +9,12 @@ RUN sed -i \
AddType text/html .html\n\
AddHandler server-parsed .html\n\
Redirect 301 /design.html /documentation#design\n\
- RewriteRule ^/?(\d+)/generated/ - [S=4]\n\
- RewriteRule ^/?(\d+)/documentation(\.html)? - [S=3]\n\
- RewriteRule ^/?(\d+)/javadoc - [S=2]\n\
- RewriteRule ^/?(\d+)/images/ - [S=1]\n\
+ RewriteRule ^/?(\\d+)/generated/ - [S=4]\n\
+ RewriteRule ^/?(\\d+)/documentation(\\.html)? - [S=3]\n\
+ RewriteRule ^/?(\\d+)/javadoc - [S=2]\n\
+ RewriteRule ^/?(\\d+)/images/ - [S=1]\n\
RewriteCond $2 !=protocol\n\
- RewriteRule ^/?(\d+)/([a-z]+)(\.html)? /$1/documentation#$2
[R=302,L,NE]\n\
- RewriteCond %{REQUEST_FILENAME}.html -f\n\
- RewriteRule ^(.*)$ %{REQUEST_FILENAME}.html' \
+ RewriteRule ^/?(\\d+)/([a-z]+)(\\.html)? /$1/documentation#$2
[R=302,L,NE]' \
"/usr/local/apache2/conf/httpd.conf"
-CMD ["httpd-foreground"]
+CMD ["httpd-foreground"]
\ No newline at end of file