olliherranen
asked on
XAMPP Apache port change?
Hi,
I have a XAMPP-system, and now there is a need to change the port from 80 to something else. Tried Port and Listen, but the links break. I have phpBB, Moodle, MediaWiki running under XAMPP and URL http://server:newport works fine but for example moodle mainpage after login the links are broken, they still reference to port 80. What is the right way to correct this?
Thanks in advance!
-Olli
I have a XAMPP-system, and now there is a need to change the port from 80 to something else. Tried Port and Listen, but the links break. I have phpBB, Moodle, MediaWiki running under XAMPP and URL http://server:newport works fine but for example moodle mainpage after login the links are broken, they still reference to port 80. What is the right way to correct this?
Thanks in advance!
-Olli
ASKER
No, it will not work. In Moodle login page, when I enter my username and password and hit "Login", there comes an error page "Can not open http://server/moodle" so it forgets that the port was supposed to be 8080 instead of 80. Now we are getting to my problem.... ;-)
-Olli
-Olli
silly question: did you adapt the links to connect to port 8080 also?
ASKER
What do you mean? I presume that the links are relative, so that there really is not everything from http://server.... but only ./dir/file.htm. But I could be wrong, someone can perhaps confirm this?
ASKER
Ok, there seems to be the whole URL in html-source. Now the question remains "how to get moodle understand the new port IS NOT 80?" I could have 1000 differend moodle-courses there (which I don't, obviously) and that is why editing every single link is not an option.
Cheers,
-Olli
Cheers,
-Olli
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If all else fails, you can use mod_rewrite to redirect moodle links to the specific port you configured.
> .. you can use mod_rewrite to redirect moodle links to the specific port ..
how should that work if the request was send to a port where no apache is listening?
how should that work if the request was send to a port where no apache is listening?
I believe in my suggestion http:#16797275
Listen 8080
# or
Listen 42.42.42.42:8080
then restart your server, obviously