lowprofile
Verified User
- Joined
- May 26, 2019
- Messages
- 40
Hi,
How can I redirect server.domain.com to server.domain.com:2222 ?
Servername is: server.domain.com
Right now i removed the index.html in /var/www/html and created an index.php file with this content:
And it works! but it gets overwritten when updating somewhere in the process (maybe rewrite confs) - well not overwritten, but index.html gets created, and therefor server reads index.html first (which gives you the boring "Apache is functioning normally" page..
How can i keep it sustainable without being concerned about things get reverted at updates?
How can I redirect server.domain.com to server.domain.com:2222 ?
Servername is: server.domain.com
Right now i removed the index.html in /var/www/html and created an index.php file with this content:
Code:
<?php
header("Location: http://".$_SERVER['HTTP_HOST'].":2222");
?>
And it works! but it gets overwritten when updating somewhere in the process (maybe rewrite confs) - well not overwritten, but index.html gets created, and therefor server reads index.html first (which gives you the boring "Apache is functioning normally" page..
How can i keep it sustainable without being concerned about things get reverted at updates?