Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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,
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.