You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've set up a website from a subdirectory of xgboost-ci.net: https://xgboost-ci.net/dashboard/. In #6, we chose Nginx for the web server, so we modify the Nginx configuration here.
Create the directory /var/www/xgboost-ci.net/html/dashboard.
Create the file index.php in /var/www/xgboost-ci.net/html/dashboard with the following content:
<?php phpinfo(); ?>
Since Nginx doesn't contain native PHP processing like Apache, we install the FastCGI PHP bridge by running sudo apt install php7.2-fpm php7.2-mbstring php7.2-xml php-pear.
Open the configuration file /etc/nginx/sites-enabled/xgboost-ci.net. Add the following configuration block to the server block:
Also, change the line index index.html index.htm; to index index.html index.htm index.php;.
5. Run sudo nginx -t to verify the modified configuration.
6. Restart Nginx to apply the new configuration: sudo systemctl reload nginx.
7. Verify that https://xgboost-ci.net loads the Jenkins website and that https://xgboost-ci.net/dashboard/ loads the index.php we created earlier.
The text was updated successfully, but these errors were encountered:
I've set up a website from a subdirectory of xgboost-ci.net: https://xgboost-ci.net/dashboard/. In #6, we chose Nginx for the web server, so we modify the Nginx configuration here.
/var/www/xgboost-ci.net/html/dashboard
.index.php
in/var/www/xgboost-ci.net/html/dashboard
with the following content:sudo apt install php7.2-fpm php7.2-mbstring php7.2-xml php-pear
./etc/nginx/sites-enabled/xgboost-ci.net
. Add the following configuration block to theserver
block:Also, change the line
index index.html index.htm;
toindex index.html index.htm index.php;
.5. Run
sudo nginx -t
to verify the modified configuration.6. Restart Nginx to apply the new configuration:
sudo systemctl reload nginx
.7. Verify that https://xgboost-ci.net loads the Jenkins website and that https://xgboost-ci.net/dashboard/ loads the
index.php
we created earlier.The text was updated successfully, but these errors were encountered: