Setting Moodle URL

Setting Moodle URL

- S4tter S の投稿
返信数: 3
Hello,
I have a new server moodle installed in > C:\xampp\htdocs\moodle
I accede with http://localhost/moodle

Im trying to change the URL to moodleserver.companyname.com

I have edit this configuration files:

C:\xampp\apache\conf\httpd.conf > servername moodleserver.companyname.com:80
C:\xampp\apache\conf\extra\httpd-ssl.conf > servername moodleserver.companyname.com:443
C:\xampp\htdocs\moodle\config.php > $CFG->wwwroot   = 'http://moodleserver.companyname.com:443';

I have certificates files .crt and .key on your routes.

When I try go to http://localhost/moodle redirects me to https://moodleserver.companyname.com but i get error.
When I try go to https://moodleserver.companyname.com i also get error.

Is there another configuration file to change the URL ? or another way through the site administration ?

Thanks,

S4tter S への返信

Re: Setting Moodle URL

- Emma Richardson の投稿
画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Plugin developers
Well, what error are you getting?
Emma Richardson への返信

Re: Setting Moodle URL

- S4tter S の投稿
In access.log

"GET /moodle/ HTTP/1.1" 303 1503 "

In the browser


S4tter S への返信

Re: Setting Moodle URL

- Gregor McNish の投稿
画像 Particularly helpful Moodlers
if you're running the site on a local machine, then you'll need to make sure it recognises itself as the machine/domain name you want it to. If this isn't setup with DNS on your local network, you can edit your hosts file to put an entry for your machine/domain name in as an alias to localhost 127.0.0.1