• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP basdir and port questions

P

Paul M

Guest
A couple of questions;

1. Is there an official way to extend the basdir protection for a domain outside of the httpdocs folder, I want some files accessible to php, but not via the web, I don't want them in /tmp.

2. Again, is there an official way to make a domain respond on another port besides 80.

Atm I edit the domains httpd.include file for these changes - but this means that they get overwritten whenever plesk rewrites the file for some reason (the Listen command is in the main httpd file, so not affected).
 
Originally posted by Mirco
1. Yes, you can add paths to open_basedir with a vhost.conf: http://faq.sw-soft.com/article_41_432_en.html
Thank you, I'll take a look at that.

Originally posted by Mirco
2. You can add add'l ports (Listen directive) to the main httpd.conf
I think you have misunderstood. I've added the Listen command okay, the problem is that each domains virtual host specifies port 80, like this

Code:
<VirtualHost 12.34.56.78:80>
	ServerName   domain.co.uk:80
	ServerAlias  [url]www.domain.co.uk[/url]

I have to manually edit in port 81 ;

Code:
<VirtualHost 12.34.56.78:80 12.34.56.78:81>
	ServerName   domain.co.uk:80
	ServerAlias  [url]www.domain.co.uk[/url]
 
True enough :) - you might want to try iptables with PREROUTING chain to redirect the specified port to port 80
 
Originally posted by Mirco
True enough :) - you might want to try iptables with PREROUTING chain to redirect the specified port to port 80
Hmm, iptables, something new to play with.

I guess that means there is no way to fix it in plesk ?
 
Back
Top