-
Notifications
You must be signed in to change notification settings - Fork 0
Domain
Iva edited this page Aug 23, 2024
·
3 revisions
-
Configuration Refinement (Domain)
-
Change the domain name to be considered by the server in the
nginx.conf
configuration file of the NGINX container, changingserver_name
from _ to the domain specified in the project requirements, as shown below:server_name _; #Line before server_name ivbatist.42.fr; #Line after
-
Change the previously defined URL for localhost in the WordPress creation script
wp-install.sh
to the domain specified in the project requirements, as shown below:./wp-cli.phar core install --url=localhost --title=inception --admin_user=ivbatist --admin_password=1234567890 [email protected] --allow-root ./wp-cli.phar core install --url=ivbatist.42.fr --title=inception --admin_user=ivbatist --admin_password=1234567890 [email protected] --allow-root
-
Add the following to the host/VM in the
/etc/hosts
file, informing your operating system that all traffic toivbatist.42.fr
should be treated as traffic tolocalhost
(127.0.0.1):127.0.0.1 ivbatist.42.fr
👉🏼 This command should be included in the Makefile to evaluate whether this line is present in the original file and add it if not.
-