Skip to content

Commit aa451ca

Browse files
committed
Http conf
Apache conf
1 parent 2e23b4b commit aa451ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/httpd.conf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ LoadModule alias_module modules/mod_alias.so
199199
LoadModule rewrite_module modules/mod_rewrite.so
200200

201201
<IfModule mod_rewrite.c>
202+
202203
RewriteEngine On
203204

204-
# Exclude /openmina-node from the general rewrite rules
205+
# Exclude specific paths from rewriting if needed
205206
RewriteCond %{REQUEST_URI} ^/openmina-node/ [NC,OR]
206207
RewriteCond %{REQUEST_URI} ^/mina/webrtc/signal [NC]
207208
RewriteRule ^ - [L]
@@ -211,8 +212,8 @@ LoadModule rewrite_module modules/mod_rewrite.so
211212
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
212213
RewriteRule ^ - [L]
213214

214-
# Rewrite all other requests to index.html
215-
RewriteRule ^(.*)$ /index.html [L]
215+
# If the requested resource doesn't exist, use index.html
216+
RewriteRule ^ /index.html
216217
</IfModule>
217218

218219
SSLProxyEngine On
@@ -500,6 +501,7 @@ LogLevel warn
500501
AddType application/x-gzip .gz .tgz
501502
AddType application/wasm .wasm
502503
AddType application/javascript .js
504+
AddType text/javascript .js
503505
#
504506
# AddHandler allows you to map certain file extensions to "handlers":
505507
# actions unrelated to filetype. These can be either built into the server

0 commit comments

Comments
 (0)