Et un virtualhost apache (ou nginx ou...) qui va bien :
Virtualhost 127.0.0.1:80 {
ServerName www.monsite-dev.fr
...
}
Et c'est parti comme en prod.
Pq développer et afficher dans un sous répertoire genre http://localhost/monsite/ c'est pas glorieux, ça fout en l'air la réécriture d'url, les cookies et j'en passe...
# Développement
Posté par Maxime G . En réponse à la dépêche De l'efficacité du fichier hosts.. Évalué à 7.
Dans hosts :
127.0.0.1 www.monsite-dev.fr
Et un virtualhost apache (ou nginx ou...) qui va bien :
Virtualhost 127.0.0.1:80 {
ServerName www.monsite-dev.fr
...
}
Et c'est parti comme en prod.
Pq développer et afficher dans un sous répertoire genre http://localhost/monsite/ c'est pas glorieux, ça fout en l'air la réécriture d'url, les cookies et j'en passe...