When you use Sitebuilder with Parallels Plesk Panel and change Apache web server port, you should reconfigure Sitebuilder to provide integration with the changed port.
To configure Sitebuilder:
Note: In the commands below, replace <hostname> with your hostname. These commands are an example for Debian 5.
conf.d/ of Apache web server:/opt/sitebuilder/utils/configure --httpd_port 8080
application_url parameter in Sitebuilder configuration file:host# grep application_url /opt/sitebuilder/config
application_url = "http://sitebuilder.<hostname>:8080"
# echo "select * from SBConfig where param_name='url';"| mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
param_name param_value
url http://sitebuilder.<hostname>:8080/ServiceFacade/
echo "update SBConfig SET param_value='http://sitebuilder.<hostname>:8080/ServiceFacade/' where param_name='url';"| mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
The following is the example of configuration file for Sitebuilder on Debian 5:
Note: In this example replace <IP-address> with your IP address.
server {
listen 80;
server_name sitebuilder.*;
access_log /var/log/nginx/sitebuilder.log main;
#Main location
location / {
proxy_pass http://<IP-address>:8080;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
open_file_cache max=1024 inactive=600s;
open_file_cache_valid 2000s;
open_file_cache_min_uses 1;
open_file_cache_errors on;
}
}