1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PHP basdir and port questions

Discussion in 'Plesk for Linux - 8.x and Older' started by Paul M, Feb 26, 2006.

  1. Paul M

    Paul M Guest

    0
     
    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).
     
  2. Paul M

    Paul M Guest

    0
     
    anyone ?
     
  3. Mirco@

    Mirco@ Basic Pleskian

    24
    53%
    Joined:
    Aug 1, 2001
    Messages:
    43
    Likes Received:
    0
  4. Paul M

    Paul M Guest

    0
     
    Thank you, I'll take a look at that.

    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]
     
  5. Mirco@

    Mirco@ Basic Pleskian

    24
    53%
    Joined:
    Aug 1, 2001
    Messages:
    43
    Likes Received:
    0
    True enough :) - you might want to try iptables with PREROUTING chain to redirect the specified port to port 80
     
  6. Paul M

    Paul M Guest

    0
     
    Hmm, iptables, something new to play with.

    I guess that means there is no way to fix it in plesk ?
     
Loading...