Results 1 to 8 of 8
-
08-19-2009, 12:31 PM #1Junior Guru Wannabe
- Join Date
- Jun 2007
- Posts
- 57
Change Apache Default Port in Plesk
Struggling to change the default port for Apache in Plesk.
I know I can change the "Listen" directive in httpd.conf but this does not reflect in the <virtualhost IP:80> entry in httpd.include for the specific domains and I know that directly changing it there is useless as Plesk will overwrite this sooner or later.
Nosing around the conf.d directory, I notice all of the plesk generated files have 80 in them and that this remains so after changing the "Listen" directive in httpd.conf and restarting Apache which seems to suggest that port 80 may be hard coded into the Plesk php files.
I hope this is not the case and that it is possible to change this.
Thanks
-
08-19-2009, 01:09 PM #2New Member
- Join Date
- Aug 2009
- Posts
- 3
Just add another Listen directive to /etc/httpd/conf/httpd.conf, or create another config file in /etc/httpd/conf.d/
-
08-19-2009, 01:42 PM #3Junior Guru Wannabe
- Join Date
- Jun 2007
- Posts
- 57
Thanks for replying.
Do you mean add "Listen 81" in addition to what is already in httpd.conf or to create a conf file in the conf.d directive with this in it?
Am I right in understanding that with this, when I run websrvmng and/or restart apache, the necessary directives etc will all be changed.
Thanks again
-
08-20-2009, 08:47 AM #4Support Facility
- Join Date
- Jun 2009
- Posts
- 2,335
You can change it through the etc/httpd/conf/httpd.conf. Any how if you change it, plesk will change it back to default port.
-
08-20-2009, 09:12 AM #5Disabled
- Join Date
- Apr 2005
- Location
- Cochin
- Posts
- 2,452
-
08-20-2009, 12:16 PM #6Junior Guru Wannabe
- Join Date
- Jun 2007
- Posts
- 57
-
08-20-2009, 02:33 PM #7Junior Guru Wannabe
- Join Date
- Jun 2007
- Posts
- 57
Got some tips on the atomic rocket turtle forum.
Event triggers calling ....
Code:#!/bin/bash MY_FILEPATH="/var/www/vhosts" MY_FILE="httpd.include" MY_REPLACE=":new-ip" find $MY_FILEPATH -name $MY_FILE -exec perl -p -i -e "s[:80][$MY_REPLACE]g" {} \; service httpd restart
-
01-12-2011, 05:43 AM #8Web Hosting Evangelist
- Join Date
- Sep 2008
- Posts
- 545
Similar Threads
-
change default IP address of Plesk server
By noahlau in forum Hosting Software and Control PanelsReplies: 1Last Post: 12-25-2006, 08:17 AM -
How do I change the default SSL certificate in Plesk?
By wa7son in forum Hosting Software and Control PanelsReplies: 4Last Post: 03-21-2006, 08:36 AM -
Help! How to change port default of MySQL And SSL
By HoangJav@ in forum Hosting Security and TechnologyReplies: 2Last Post: 01-26-2006, 05:15 PM -
Default Apache Port
By Edrick Smith in forum Dedicated ServerReplies: 0Last Post: 09-14-2005, 07:31 PM -
Plesk 5 .. default TTL .. how to change?
By Goni in forum Hosting Software and Control PanelsReplies: 1Last Post: 12-05-2002, 04:13 AM