Current time: 04-30-2024, 03:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
Manual change in the Apache config file of a domain
Author Message
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #1
Manual change in the Apache config file of a domain
Hi,

I need to insert thoses lines in the apache config file of a domain :
Code:
<Location /pastebin>
  Order allow,deny
  Allow from all
</Location>
RewriteEngine On
RewriteRule ^/pastebin$ http://conference.spheerys.fr:5280/pastebin [P,L]
Which is the procedure to do this properly, without break ispcp ?
(This post was last modified: 02-11-2011 07:30 PM by Spheerys.)
02-11-2011 07:28 PM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #2
RE: Manual change in the Apache config file of a domain
Change it in /etc/apache2/ispcp/domain.tld

Best Regards
Fluser
02-11-2011 07:35 PM
Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #3
RE: Manual change in the Apache config file of a domain
and I just have to restart apache after ?
02-11-2011 07:45 PM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #4
RE: Manual change in the Apache config file of a domain
/etc/init.d/apache2 force-reload Wink

BTW: If it helped: http://isp-control.net/forum/reputation.php?uid=9152 Smile

Best Regards
Fluser
02-11-2011 07:46 PM
Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #5
RE: Manual change in the Apache config file of a domain
Hummm there is still something wrong :
- that's work http://conference.spheerys.fr:5280/paste...d0d4407642
- that's don't work : http://conference.spheerys.fr/pastebin/7...d0d4407642

What's wrong ?
02-11-2011 11:21 PM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #6
RE: Manual change in the Apache config file of a domain
Shouldn't it be:

Code:
RewriteRule ^/pastebin/([^/\.]+)/?$ http://conference.spheerys.fr:5280/pastebin [P,L]

Best Regards
Fluser
02-11-2011 11:42 PM
Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #7
RE: Manual change in the Apache config file of a domain
Ideed, there is an evolution Smile

http://conference.spheerys.fr/pastebin/7...d0d4407642 give a Error 403 now...

Problem on the vhost config ?
02-12-2011 12:33 AM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #8
RE: Manual change in the Apache config file of a domain
I'm not really good with mod_rewrite...
But try

Code:
RewriteRule ^/pastebin/(.*)$ http://conference.spheerys.fr:5280/pastebin/$1 [P,L]

Best Regards
Fluser
02-12-2011 12:55 AM
Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #9
RE: Manual change in the Apache config file of a domain
Yes that's more logical Smile
But it still doesn't work (error 403).
How can I check the error lor of apache ? I only have combined and traf log ....
02-12-2011 01:07 AM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #10
RE: Manual change in the Apache config file of a domain
/var/log/apache2/default-error.log

Best Regards
Fluser
02-12-2011 01:15 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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