Skip to main content

Thread: Configure Apache to enable cgi-bin user directories


what right (ubuntu) way configure apache2 allow all users have cgi scripts under their
/home/*/public_html/*...*/cgi-bin

is
  • scripts may located in sub-directory depth under /home/${user}/public_html
  • allow suffix script file.
  • run user=${user} permissions.


currently, have tried endless configurations settings.
example
/etc/apache2/mods-available/userdir.conf
code:
<ifmodule mod_userdir.c>    userdir public_html    userdir disabled root      <directory /home/*/public_html>      allowoverride none      options +execcgi +includes multiviews indexes symlinksifownermatch      addhandler cgi-script .cgi .pl .py      order allow,deny      allow    </directory>  </ifmodule>
but in browser javascript console, still
post http://localhost/cgi-bin/foo.cgi 404 (not found)

when have (0755)
/home/yotam/public_html/foo/cgi-bin/foo.cgi
/home/yotam/public_html/cgi-bin/foo.cgi

did try going user directory problem happening?

in browser, use following urls relates setup:
code:
a users main site: http://localhost/<username>/  users directory on site: http://localhost/<username>/foo/cgi-bin/foo.cgi  users main cgi-bin location: http://localhost/<username>/cgi-bin/foo.cgi
<username> = users have public_html directory

hope helps.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] Configure Apache to enable cgi-bin user directories


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support