bytes.cat

La wiki d'FP d'informàtica

Eines de l'usuari

Eines del lloc


django_react_produccio

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
django_react_produccio [2026/04/13 10:57]
enric_mieza_sanchez [Configurar Apache2]
django_react_produccio [2026/04/13 10:58] (actual)
enric_mieza_sanchez [Configurar Apache2] super per isard user
Línia 209: Línia 209:
  #ServerName www.example.com  #ServerName www.example.com
  
- WSGIDaemonProcess myapp python-home=/home/isard/django-react/env python-path=/home/isard/django-react+ WSGIDaemonProcess myapp python-home=/home/super/django-react/env python-path=/home/super/django-react
  WSGIProcessGroup myapp  WSGIProcessGroup myapp
- WSGIScriptAlias / /home/isard/django-react/djangoreact/wsgi.py+ WSGIScriptAlias / /home/super/django-react/djangoreact/wsgi.py
  
- <Directory /home/isard/django-react/djangoreact>+ <Directory /home/super/django-react/djangoreact>
  <Files wsgi.py>  <Files wsgi.py>
  Require all granted  Require all granted
Línia 219: Línia 219:
  </Directory>  </Directory>
  
- Alias /static/ /home/isard/django-react/static/ + Alias /static/ /home/super/django-react/static/ 
- <Directory /home/isard/django-react/static>+ <Directory /home/super/django-react/static>
  Require all granted  Require all granted
  </Directory>  </Directory>
- Alias /media/ /home/isard/django-react/media/ + Alias /media/ /home/super/django-react/media/ 
- <Directory /home/isard/django-react/media>+ <Directory /home/super/django-react/media>
  Require all granted  Require all granted
  </Directory>  </Directory>
  
  # REACT FRONTEND  # REACT FRONTEND
- Alias /assets /home/isard/django-react/react/dist/assets/ + Alias /assets /home/super/django-react/react/dist/assets/ 
- Alias /index.html /home/isard/django-react/react/dist/index.html + Alias /index.html /home/super/django-react/react/dist/index.html 
- AliasMatch ^/$ /home/isard/django-react/react/dist/index.html + AliasMatch ^/$ /home/super/django-react/react/dist/index.html 
- <Directory /home/isard/django-react/react/dist>+ <Directory /home/super/django-react/react/dist>
  Require all granted  Require all granted
  </Directory>  </Directory>
Línia 246: Línia 246:
  RewriteCond %{REQUEST_URI} !^/assets  RewriteCond %{REQUEST_URI} !^/assets
  RewriteCond %{REQUEST_FILENAME} !-f  RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ /home/isard/django-react/react/dist/index.html [L]+ RewriteRule ^ /home/super/django-react/react/dist/index.html [L]
  
  ServerAdmin webmaster@localhost  ServerAdmin webmaster@localhost
django_react_produccio.txt · Darrera modificació: 2026/04/13 10:58 per enric_mieza_sanchez