apache - ajax not working showing forbidden error -
hi ajax code
$("#ajax_login_form").on('submit',function(event){ var datastring = $("#ajax_login_form").serialize(); $.post('http://myshowcam.com//users/login', datastring, function(response){ }, 'json'); });
after submitting form below error in console.
forbidden
you don't have permission access /testsite/users/login on server.
additionally, 404 not found error encountered while trying use errordocument handle request. apache/2.2.15 (centos) server @ myshowcam.com port 80
please help.thank in advance.
ok. makes more difficult then. knowing how configure apache extremely crucial.
assuming using cakephp 3, try following instructions here: http://book.cakephp.org/3.0/en/installation.html#apache. file located @ /etc/httpd/conf/http.conf
.
best approach use virtual_hosts
location of file created here /etc/httpd/conf.d/
. example, have myshowcam.com.conf
there. there plenty of virtualhosts example here: https://httpd.apache.org/docs/2.2/vhosts/examples.html
Comments
Post a Comment