• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Admin server redirect

D

DCNet_James

Guest
Does anyone have a quick fix for this.

I want to be able to setup either one of the following scenarios:

1. User puts in www.theirdomain.com/admin which redirects to https://www.theirdomain.com:8443/

2. User puts in admin.theirdomain.com which redirects to the same as above.

If anyone has a quick Apache config for this, let me know.

Thanks
James
 
You can put a redirect to handle the first one
If you add this to your .htaccess file. Or if you don't have one create it in /httpdocs/.htaccess

redirect /admin https://www.theirdomain.com:8443

You could also use an html meta tag redirect to do this if you create a directory named /admin and modify the code below. You could also put a subdomain in and replace the index.html with the code below. This would solve both of the problems.



<html>
<head>
<title>Redirect to the right page</title>
<META
http-equiv="refresh" content="5;URL=https://www.theirdomain.com:8443">
</head>

<body bgcolor="#ffffff">

<center>You will be redirected to the class materials page automatically
in 5 seconds.

Please bookmark the correct page
at <a href="http://www.indiana.edu/~smithclas/l200/">
http://www.indiana.edu/~smithclas/l200/</a>

</center>
</body>
</html>

If you want to automate the task it might be a bit more difficult. You could certainly add the /admin/index.html easily to the skeleton.
 
I know I could use a meta refresh from an HTML file.

That unfortunately is not what I was asking. I was asking something much more complicated which is already done in PSA for instance, lists.* or webmail.*. I could copy this config, but they're located in a dynamically updated include to httpd.conf.

I was going to write my own custom config and include it in the main httpd.conf.

So again, I ask the Apache people out there if they already have a quick config together.

TIA
J
 
Back
Top