2024-10-02
This commit is contained in:
parent
11960f633a
commit
93a452ec4a
42 changed files with 895 additions and 207 deletions
30
.ddev/apache/vite.conf
Normal file
30
.ddev/apache/vite.conf
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ddev-generated
|
||||
<VirtualHost *:80>
|
||||
ServerName vite.haikuatelier.fr.ddev.site
|
||||
DocumentRoot /mnt/ddev_config/vite/
|
||||
ErrorDocument 503 "/vite-server-not-running.html"
|
||||
|
||||
# Proxy development server
|
||||
ProxyPass / http://localhost:5173/
|
||||
ProxyPassReverse / http://localhost:5173/
|
||||
|
||||
# Proxy websockets
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||||
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||
RewriteRule ^/?(.*) "ws://localhost:5173/$1" [P,L]
|
||||
|
||||
# Do not proxy files in /vite to display the static 503 error message
|
||||
<Location "/vite-server-not-running.html">
|
||||
ProxyPass !
|
||||
</Location>
|
||||
|
||||
<Directory "/mnt/ddev_config/vite/">
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
Alias "/phpstatus" "/var/www/phpstatus.php"
|
||||
</VirtualHost>
|
||||
Loading…
Add table
Add a link
Reference in a new issue