Current time: 11-27-2024, 07:55 AM Hello There, Guest! (LoginRegister)


Post Reply 
ispcp.conf
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: ispcp.conf
The important part are the placeholders, everything else will be automatically filled by ispcp when you regenerate the configurations. Now, there are 2 points to take into account for this idea to work:

1. You must place your generated (empty, just with the placeholders) file in /etc/ispcp/apache/working/ispcp.conf and then trigger a regeneration as explained in the manual.

2. By "empty file, just with placeholders", I mean something like this:
Code:
# httpd Data BEGIN.

#
# wget-hack prevention
#

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
    RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>

#
# Log processing.
#

LogFormat "%B" traff
LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog

CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e"

#
# mod_cband configuration
#

<IfModule mod_cband.c>
    CBandScoreFlushPeriod 10
    CBandRandomPulse On
</IfModule>

#
# let the customer decide what charset he likes to use
#

AddDefaultCharset Off

#
# Header End
#

---- THIS IS A COMMENT, NOT TO APPEAR ON THE FILE:
---- (r0) Repeat this section for every IP of your server
# httpd [your.server.ip.addr] virtual host entry BEGIN.

NameVirtualHost your.server.ip.addr:80

# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
---- THIS IS A COMMENT, NOT TO APPEAR ON THE FILE:
---- (r1) Repeat this section for every domain.com of your server
# httpd [domain.com] dmn group entry BEGIN.

# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

---- THIS IS A COMMENT, NOT TO APPEAR ON THE FILE:
---- (r2) Repeat this section for every sub.domain.com of domain.com
# httpd [sub.domain.com] sub entry BEGIN.
# httpd [sub.domain.com] sub entry END.
---- THIS IS A COMMENT, NOT TO APPEAR ON THE FILE:
---- (r2) The block repeated for each subdomain ends here

# httpd [domain.com] dmn entry BEGIN.
# httpd [domain.com] dmn entry END.

# httpd [domain.com] dmn group entry END.

---- THIS IS A COMMENT, NOT TO APPEAR ON THE FILE:
---- (r1) The block repeated for each domain ends here

# httpd [your.server.ip.addr] virtual host entry END.
---- THIS IS A COMMENT, NOT TO APPEAR ON THE FILE:
---- (r0) The block repeated for each IP address ends here

# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.

# httpd Data END.
12-11-2009 05:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ispcp.conf - kotso - 12-10-2009, 02:51 AM
RE: ispcp.conf - kilburn - 12-10-2009, 04:37 AM
RE: ispcp.conf - kotso - 12-10-2009, 04:15 PM
RE: ispcp.conf - kilburn - 12-10-2009, 04:46 PM
RE: ispcp.conf - kotso - 12-10-2009, 05:51 PM
RE: ispcp.conf - kilburn - 12-11-2009, 05:02 AM
RE: ispcp.conf - kotso - 12-11-2009, 04:58 PM
RE: ispcp.conf - kilburn - 12-11-2009 05:30 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)