Change locally hosted site from "localhost" to "localhost/site"
October 25, 2016 05:33PM
Hi all,

I'm very new to hosting anything so this may have an obvious solution... But this is the first time I've ever touched a webserver, and so far I haven't got it right.

I've installed Moodle locally for testing purposes, and everything is working fine. But I would like to change the address. At the moment, when I navigate in my browser to "localhost" it brings up the moodle front page.

However, I would like to navigate to "localhost/moodle", and do the same for the other CMS/LMS software I want to try E.G. "localhost/edx", "localhost/lifterlms", "localhost/composr", etc.

I've tried changing "server_name", "root" and other stuff, but I can;t get it to behave the way I would like.

I'm running FreeBSD 10.3, nginx 1.10.1

My Moodle is installed in /usr/local/www/moodle

My nginx.conf is attached.

I'm not sure what other information I need to include here.

Any help is greatly appreciated.
Attachments:
open | download - nginx.conf (3.9 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 213
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready