The url-path name must be set to the file path name or the directory path name
Clash 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?
bash shell apache-httpd ansible
add a comment |Â
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?
bash shell apache-httpd ansible
1
I'm not quite sure what it is you're talking about. What URL path and what file path? TheScriptAlias
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
add a comment |Â
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?
bash shell apache-httpd ansible
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
bash shell apache-httpd ansible
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? TheScriptAlias
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
add a comment |Â
1
I'm not quite sure what it is you're talking about. What URL path and what file path? TheScriptAlias
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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