Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Je veux créer un alias local à localhost pour accéder à un site en développement.
- On commence par créer le fichier de configuration nginx dans /etc/nginx/conf.d
- server {
- listen 80;
- server_name facetious-pelican;
- location / {
- root /var/www/facetious-pelican/html;
- index index.html index.htm;
- }
- }
- Suivi de `sudo nginx -s reload`.
- Il faut ensuite modifier le fichier /etc/hosts pour y ajouter un alias à 127.0.0.1 :
- 127.0.0.1 localhost facetious-pelican
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement