Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Change locally hosted site from "localhost" to "localhost/site"

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>