LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-20-2009, 01:27 PM   #1
xshad0wfx
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 0
Configuring AcceptPathInfo in CenOS 5.3


Hi im having trouble finding installation instructions on how to configure/enable/install AcceptPathInfo for apache on a linux distro. Assuming that my default path for my html directory is /var/www/html how would i go about setting up AcceptPathInfo for apache?
 
Old 06-21-2009, 07:13 AM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,
The AcceptPathInfo directive is part of ApacheCore so you don't need
to install anything else to get it to work.

In CentOS-5, the apache configuration goes into the file
/etc/httpd/conf/httpd.conf in that file you should locate
the section
<Directory /var/www/html>

Inside that section, add the line
AcceptPathInfo On

- Then, restart your apache process and you should be able to use the feature.
 
Old 06-21-2009, 10:43 AM   #3
xshad0wfx
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
thanks it worked =)
 
Old 06-23-2009, 06:46 PM   #4
Caesonia
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by jhcaiced View Post
Hi,
The AcceptPathInfo directive is part of ApacheCore so you don't need
to install anything else to get it to work.

In CentOS-5, the apache configuration goes into the file
/etc/httpd/conf/httpd.conf in that file you should locate
the section
<Directory /var/www/html>

Inside that section, add the line
AcceptPathInfo On

- Then, restart your apache process and you should be able to use the feature.

Hi, I was reading your post, and I am still a bit confused. I have several virtual servers, and if I understand correctly, I can set AcceptPathInfo individuals for each one using the syntax above.

I have duly set it to On.

Unfortunately, it does NOT seem to be working. For example, once enabled, I should be able to use the php server variable $_SERVER['PATH_INFO']. I never see that variable enabled in the phpinfo file, nor do I seem to be able to echo that variable from a script and get the path, which I should.

Is there another way to verify that the directive is working? I have noticed several complaints on the web about Apache 2 having a bug in this regard with AcceptPathInfo.

Ta bunches.
 
Old 06-23-2009, 09:56 PM   #5
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,
I have do some additional tests and can confirm that the directive
AcceptPathInfo works fine in CentOS-5.3 (httpd-2.2.3-22.el5.centos.1)
the directive can be put in the <Directory> section of a
configuration file or an .htaccess file in the directory.

I also used a small script in PHP to print the $_SERVER["PATH_INFO"]
variable.

Best regards,
 
Old 06-24-2009, 02:22 PM   #6
Caesonia
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by jhcaiced View Post
Hi,
I have do some additional tests and can confirm that the directive
AcceptPathInfo works fine in CentOS-5.3 (httpd-2.2.3-22.el5.centos.1)
the directive can be put in the <Directory> section of a
configuration file or an .htaccess file in the directory.

I also used a small script in PHP to print the $_SERVER["PATH_INFO"]
variable.

Best regards,
Well, would you mid sharing how you tested it? Because so far, it doesn' tseem towrk for me on any of my servers, even when I do what I am supposed to.

My code to test is thus:
php?>

$path = $_SERVER['PATH_INFO'];
echo $path;

?>

I also did a test to see if it were true or not. It failed.

So, it would be really helpful if you would share your code test, or whatever else is going on.

Ta bunches.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user password failed after migrating /etc/shadow, /etc/passwd ect from SUSE9 to CenOS monkeyxu Linux - Newbie 1 05-21-2009 09:42 AM
I want to install Perl on CenOS blck_kenzo Linux - Software 1 05-19-2009 11:32 AM
iscsi-ls command not found on CenOS 5 athreyavc Linux - Server 1 01-02-2008 07:53 AM
CenOS 5 symmetric dual xeon 2.0 processors metallica1973 Red Hat 1 12-28-2007 05:21 AM
Not configuring Culbert Linux - Software 3 08-24-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration