The url-path name must be set to the file path name or the directory path name

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












So I need to make sure that the url-path is set to the file path from a httpd.conf file directive path.



So I have a stig and It states If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code.



The path in the conf file is shown through the ScriptAlias directive:



ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


So theres a /cgi-bin/ and then there is a "/var/www/cgi-bin/"



How would I set the url-path to the file path or directory path?



I was thinking maybe theres a bash script that can extract both the /cgi-bin/ and the "/var/www/cgi-bin/" and set them equal to ensure that the url-path is set to the file or directory path.



Or is there another way of doing this through shell or ansible?










share|improve this question



















  • 1




    I'm not quite sure what it is you're talking about. What URL path and what file path? The ScriptAlias directive says that when a client accesses something as /cgi-bin/, the server will access the corresponding CGI program under its /var/www/cgi-bin directory.
    – Kusalananda
    Aug 7 at 16:47










  • I need a check to ensure there equal, it states "If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code." So I need like a way to check if the url path is equal to the file path name or directory path name
    – W.Smith
    Aug 7 at 16:51










  • Are you talking about this? stigviewer.com/stig/apache_server_2.2unix/2017-10-02/finding/…
    – Kusalananda
    Aug 7 at 17:03










  • yes how do u do that basically, and now I'm wondering if I would use a bash script or can u do it in shell or ansible?
    – W.Smith
    Aug 7 at 17:11














up vote
0
down vote

favorite












So I need to make sure that the url-path is set to the file path from a httpd.conf file directive path.



So I have a stig and It states If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code.



The path in the conf file is shown through the ScriptAlias directive:



ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


So theres a /cgi-bin/ and then there is a "/var/www/cgi-bin/"



How would I set the url-path to the file path or directory path?



I was thinking maybe theres a bash script that can extract both the /cgi-bin/ and the "/var/www/cgi-bin/" and set them equal to ensure that the url-path is set to the file or directory path.



Or is there another way of doing this through shell or ansible?










share|improve this question



















  • 1




    I'm not quite sure what it is you're talking about. What URL path and what file path? The ScriptAlias directive says that when a client accesses something as /cgi-bin/, the server will access the corresponding CGI program under its /var/www/cgi-bin directory.
    – Kusalananda
    Aug 7 at 16:47










  • I need a check to ensure there equal, it states "If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code." So I need like a way to check if the url path is equal to the file path name or directory path name
    – W.Smith
    Aug 7 at 16:51










  • Are you talking about this? stigviewer.com/stig/apache_server_2.2unix/2017-10-02/finding/…
    – Kusalananda
    Aug 7 at 17:03










  • yes how do u do that basically, and now I'm wondering if I would use a bash script or can u do it in shell or ansible?
    – W.Smith
    Aug 7 at 17:11












up vote
0
down vote

favorite









up vote
0
down vote

favorite











So I need to make sure that the url-path is set to the file path from a httpd.conf file directive path.



So I have a stig and It states If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code.



The path in the conf file is shown through the ScriptAlias directive:



ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


So theres a /cgi-bin/ and then there is a "/var/www/cgi-bin/"



How would I set the url-path to the file path or directory path?



I was thinking maybe theres a bash script that can extract both the /cgi-bin/ and the "/var/www/cgi-bin/" and set them equal to ensure that the url-path is set to the file or directory path.



Or is there another way of doing this through shell or ansible?










share|improve this question















So I need to make sure that the url-path is set to the file path from a httpd.conf file directive path.



So I have a stig and It states If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code.



The path in the conf file is shown through the ScriptAlias directive:



ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


So theres a /cgi-bin/ and then there is a "/var/www/cgi-bin/"



How would I set the url-path to the file path or directory path?



I was thinking maybe theres a bash script that can extract both the /cgi-bin/ and the "/var/www/cgi-bin/" and set them equal to ensure that the url-path is set to the file or directory path.



Or is there another way of doing this through shell or ansible?







bash shell apache-httpd ansible






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 7 at 17:09

























asked Aug 7 at 16:28









W.Smith

83




83







  • 1




    I'm not quite sure what it is you're talking about. What URL path and what file path? The ScriptAlias directive says that when a client accesses something as /cgi-bin/, the server will access the corresponding CGI program under its /var/www/cgi-bin directory.
    – Kusalananda
    Aug 7 at 16:47










  • I need a check to ensure there equal, it states "If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code." So I need like a way to check if the url path is equal to the file path name or directory path name
    – W.Smith
    Aug 7 at 16:51










  • Are you talking about this? stigviewer.com/stig/apache_server_2.2unix/2017-10-02/finding/…
    – Kusalananda
    Aug 7 at 17:03










  • yes how do u do that basically, and now I'm wondering if I would use a bash script or can u do it in shell or ansible?
    – W.Smith
    Aug 7 at 17:11












  • 1




    I'm not quite sure what it is you're talking about. What URL path and what file path? The ScriptAlias directive says that when a client accesses something as /cgi-bin/, the server will access the corresponding CGI program under its /var/www/cgi-bin directory.
    – Kusalananda
    Aug 7 at 16:47










  • I need a check to ensure there equal, it states "If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code." So I need like a way to check if the url path is equal to the file path name or directory path name
    – W.Smith
    Aug 7 at 16:51










  • Are you talking about this? stigviewer.com/stig/apache_server_2.2unix/2017-10-02/finding/…
    – Kusalananda
    Aug 7 at 17:03










  • yes how do u do that basically, and now I'm wondering if I would use a bash script or can u do it in shell or ansible?
    – W.Smith
    Aug 7 at 17:11







1




1




I'm not quite sure what it is you're talking about. What URL path and what file path? The ScriptAlias directive says that when a client accesses something as /cgi-bin/, the server will access the corresponding CGI program under its /var/www/cgi-bin directory.
– Kusalananda
Aug 7 at 16:47




I'm not quite sure what it is you're talking about. What URL path and what file path? The ScriptAlias directive says that when a client accesses something as /cgi-bin/, the server will access the corresponding CGI program under its /var/www/cgi-bin directory.
– Kusalananda
Aug 7 at 16:47












I need a check to ensure there equal, it states "If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code." So I need like a way to check if the url path is equal to the file path name or directory path name
– W.Smith
Aug 7 at 16:51




I need a check to ensure there equal, it states "If the directive uses a URL-path name that is different than the actual file system path, the potential exists to expose the script source code." So I need like a way to check if the url path is equal to the file path name or directory path name
– W.Smith
Aug 7 at 16:51












Are you talking about this? stigviewer.com/stig/apache_server_2.2unix/2017-10-02/finding/…
– Kusalananda
Aug 7 at 17:03




Are you talking about this? stigviewer.com/stig/apache_server_2.2unix/2017-10-02/finding/…
– Kusalananda
Aug 7 at 17:03












yes how do u do that basically, and now I'm wondering if I would use a bash script or can u do it in shell or ansible?
– W.Smith
Aug 7 at 17:11




yes how do u do that basically, and now I'm wondering if I would use a bash script or can u do it in shell or ansible?
– W.Smith
Aug 7 at 17:11















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461106%2fthe-url-path-name-must-be-set-to-the-file-path-name-or-the-directory-path-name%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461106%2fthe-url-path-name-must-be-set-to-the-file-path-name-or-the-directory-path-name%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay