ispCP - Board - Support
Manual change in the Apache config file of a domain - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Manual change in the Apache config file of a domain (/thread-12861.html)

Pages: 1 2


Manual change in the Apache config file of a domain - Spheerys - 02-11-2011 07:28 PM

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 ?


RE: Manual change in the Apache config file of a domain - fluser - 02-11-2011 07:35 PM

Change it in /etc/apache2/ispcp/domain.tld

Best Regards
Fluser


RE: Manual change in the Apache config file of a domain - Spheerys - 02-11-2011 07:45 PM

and I just have to restart apache after ?


RE: Manual change in the Apache config file of a domain - fluser - 02-11-2011 07:46 PM

/etc/init.d/apache2 force-reload Wink

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

Best Regards
Fluser


RE: Manual change in the Apache config file of a domain - Spheerys - 02-11-2011 11:21 PM

Hummm there is still something wrong :
- that's work http://conference.spheerys.fr:5280/pastebin/784458ff-e8e6-439d-aeac-f3d0d4407642
- that's don't work : http://conference.spheerys.fr/pastebin/784458ff-e8e6-439d-aeac-f3d0d4407642

What's wrong ?


RE: Manual change in the Apache config file of a domain - fluser - 02-11-2011 11:42 PM

Shouldn't it be:

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

Best Regards
Fluser


RE: Manual change in the Apache config file of a domain - Spheerys - 02-12-2011 12:33 AM

Ideed, there is an evolution Smile

http://conference.spheerys.fr/pastebin/784458ff-e8e6-439d-aeac-f3d0d4407642 give a Error 403 now...

Problem on the vhost config ?


RE: Manual change in the Apache config file of a domain - fluser - 02-12-2011 12:55 AM

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


RE: Manual change in the Apache config file of a domain - Spheerys - 02-12-2011 01:07 AM

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 ....


RE: Manual change in the Apache config file of a domain - fluser - 02-12-2011 01:15 AM

/var/log/apache2/default-error.log

Best Regards
Fluser