How to find error using Apache 2.2 and mod_wsgi – Deploying django and error "Forbidden – You don’t have permission to access / on this server. "

Situation:

I want to deploy a django app, and the app works fine in the server without apache, but when I try to set up the django app behind apache this error is shown.

Error Message:

Forbidden

You don't have permission to access / on this server.

Apache/2.2.15 (Red Hat) Server at 10.184.56.52 Port 80

Apache Version :

[email protected]:/etc/httpd/conf$ /usr/sbin/httpd -V
Server version: Apache/2.2.15 (Unix)
Server built:   Aug 18 2015 02:00:22
Server's Module Magic Number: 20051115:25
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
[email protected]:/etc/httpd/conf$ 

Apache and Module mod_wsgi installation

$ yum install python27-mod_wsgi.x86_64

Apache is working, but after adding the following lines and restarting the apache service the error is shown

httpd.conf - adding configuration directives for django using mod_wsgi :

WSGIScriptAlias / /u05/admin/NPortalWeb/src/TI/wsgi.py
WSGIPythonPath /u05/admin/NPortalWeb/src/TI:/u05/admin/NPortalWeb/site-packages

<Directory /u05/admin/NPortalWeb/src/>
<Files wsgi.py>
    Order allow,deny
    Allow from all
</Files>
</Directory>

Users and Groups

[email protected]:/etc/httpd/conf# id apache
uid=48(apache) gid=48(apache) groups=48(apache),903(admin)
[email protected]:/etc/httpd/conf# id admin
uid=903(admin) gid=903(admin) groups=903(admin),48(apache)

Directory permissions

[email protected]:/u05/admin/NPortalWeb/src$ ll
total 148
-rwxr-xr-x. 1 admin admin 131072 Sep 24 16:45 db.sqlite3
drwxr-xr-x. 4 admin admin   4096 Sep 30 14:52 DisponibilidadTI
-rwxr-xr-x. 1 admin admin    245 Sep 24 16:45 manage.py
-rwxr-xr-x. 1 admin admin   3446 Sep 30 14:53 nohup.out
drwxr-xr-x. 2 admin admin   4096 Sep 30 14:52 TI
[email protected]:/u05/admin/NPortalWeb/src$ 

Linux Version:

[email protected]:/u05/admin/NPortalWeb/src$ lsb_release -i -r
Distributor ID: RedHatEnterpriseServer
Release:    6.5

Thank you for any suggestion or idea.

redirect the entire php url with params (apache/nginx)

1) How to make Apache to redirect the whole url with parameters, and make it visible to a client, for example: when client comes to :

https://domain1.com/app/index.php?device_id=WeWeWe&ordna_ver=5.0&num=+1234567890

it redirects him to:

https://domain2.com/app/index.php?device_id=WeWeWe&ordna_ver=5.0&num=+1234567890

2) Also, how to make the same redirect but NOT visible to a client (he still see the URL from domain1.com while opening it from domain2.com) ?

3) And the third, how to make the same two things (redirects) with nginx ?

Thank you very much for your help.

Wicket ListView ajax removes always removes last element in list

I have a way to add panels in a listview. Each panel is associated with an Object of type Type. I have an 'add' and an some 'remove' AjaxSubmitLinks. Both have setDefaultFormProcessing(false) because I want non-submitted / validated values to remain when someone add or removes an element. setReuseItems(true) is set for the ListView. Please see the code snippet below.

         ListView itemContainer = new ListView<Type>("list", getList()) {
            @Override
            protected void populateItem(final ListItem<Type> listItem) {
                final Component element = createComponent(listItem.getModel());
                listItem.add(element);
                listItem.add(new AjaxSubmitLink("remove") {

                    @Override
                    protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                        getList().remove(listItem.getIndex());
                        target.add(wrapper);
                    }
                }.setDefaultFormProcessing(false));
            }
        };
        itemContainer.setReuseItems(true);
        add(itemContainer);
        add(new AjaxSubmitLink("add") {
            @Override
            protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
                Type object = addObject();
                getList().add(object);
                target.add(wrapper);
            }

            @Override
            public boolean isVisible() {
                return getList().size() < DSAddableField.this.max && isEditable();
            }
        }.setDefaultFormProcessing(false));

Where wrapper contains everything, so everything is reloaded with Ajax. All works well, expcet no matter which remove link I click the last element is being removed. equals() method is overriden on Type based on a UUID check. I did a debug and it would seem to me that the right element is removed from the ListModel, but wrong values are sent down by the ajax response.

How can I get this to work? I tried to remove setReuseItem(true), but than the non-saved values for list items were not reloaded. (Panels contain lot of input fields)

Any suggestions?

UPDATE:

I already tried to remove the object with getList().remove(listItem.getModelObject()), this was second solution but still failed.

Is it possible to extract var from dummy url, use it in meta, but display original dummy url?

Let's say I have the following url: example.com/123456

That url doesn't point to anything - the 123456 is a variable.
With PHP and/or htaccess I wonder if I can:

  1. get the "123456" var
  2. push the var into a meta tag in example.com/index.php
  3. show the original url in the address bar, but display content redirected from example.com/index.php (123456 is ignored, it's just a dummy url).

I'm able to do 1 & 2 with an htaccess rewrite. I have a feeling I can do #3 via javascript, but I wonder if there's a cleaner solution that won't make the address bar change more than needed. Also, I don't want to be hacky - I wonder if this is a legit process?

Here's what I've got so far with .htaccess:

RewriteEngine on
RewriteRule ^([A-Za-z0-9\+/=]+)$ ?t=$1 [NC,R=301,L]

And for the index.php I'm just using:

<meta name="foo" content="https://example.com/<?php echo $_GET['t'] ?>" />

All this works, but in order to get the meta var in php, the url gets changed to example.com/?t=123456. I want to display the dummy url: example.com/123456 but show content from example.com/index.php

The difference between my question and the possible duplicate is that I already am using rewrite. See also the answer to my question, which is nowhere mentioned in the possible duplicate.

rewriting url using htaccess rewrite mod

How can this be done? I want a change the htaccess rule to hide the url expression from user. I am searching to much on google but not get solution. My website links like this html/e?c=value but I want to like this html/table/value hide this ?c= from the visitor or a user table is not a directory also e is already rewritten from e.php How can this be done,

I tried to do this way

RewriteRule ^([^/]+) /e.php?c=$1 [NC]

but this error came: Not Found

The requested URL /e.php was not found on this server.

The requested URL xxxxx was not found on this server

I've already added the .htaccess with this content

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
`# END WordPress`

and the same problem appeared whenever i change the permalink structure , i've also read a question that was asked here before and changed (AllowOverride None) to (AllowOverride ALL) in the httpd.conf and the same problem appeared again..

Cant access sites through Apache

SETUP: Client > Apache (proxy) > Weblogic

ISSUE: I have deployed application on Weblogic, but I can't get to it from one machine (IP:150.142.132.66) but can get to it from other computer! Basically, out of 20 users, 7 cant access it.

I did telnet to apache from the local where it is not working and it connects fine. So I don't think its a firewall issue. Also, it doesn't give any errors like 404, the URL just wont respond.

There are 3 applications deployed that are route through the same proxy server, but only 1 is accessible. Two applications don't respond. Though apache access_log gives me 200.

The urls that cant be accessed are:

/itrak/theme/Master.css /itrak/theme/stylesheet.css

Following is the error_log from apache:

[Wed Sep 30 10:05:08 2015] [error] [client 150.142.132.129] File does not exist: /var/apache2/newdevproxy/htdocs/itak
[Wed Sep 30 10:05:43 2015] [error] [client 150.142.132.129] File does not exist: /var/apache2/newdevproxy/htdocs/itak
[Wed Sep 30 10:07:22 2015] [error] [client 150.142.132.129] File does not exist: /var/apache2/newdevproxy/htdocs/itak
[Wed Sep 30 10:18:45 2015] [error] [client 150.142.132.129] File does not exist: /var/apache2/newdevproxy/htdocs/itak
[Wed Sep 30 11:37:11 2015] [error] [client 150.142.132.66] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 11:37:11 2015] [error] [client 150.142.132.66] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 11:38:18 2015] [error] [client 150.142.132.66] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 11:38:18 2015] [error] [client 150.142.132.66] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 11:44:17 2015] [error] [client 10.50.108.3] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 11:44:17 2015] [error] [client 10.50.108.3] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 14:09:08 2015] [error] [client 10.50.97.120] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 14:09:08 2015] [error] [client 10.50.97.120] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 14:33:13 2015] [error] [client 150.142.132.66] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 14:33:26 2015] [error] [client 150.142.132.66] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 15:01:58 2015] [error] [client 150.142.132.10] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 15:01:58 2015] [error] [client 150.142.132.10] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 15:29:27 2015] [error] [client 10.50.108.22] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 15:29:27 2015] [error] [client 10.50.108.22] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 15:49:39 2015] [error] [client 150.142.132.10] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 15:49:39 2015] [error] [client 150.142.132.10] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 15:49:54 2015] [error] [client 150.142.132.78] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 15:49:54 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 15:50:26 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 15:50:28 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 15:50:30 2015] [error] [client 150.142.132.10] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 15:50:32 2015] [error] [client 150.142.132.78] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 15:50:32 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 15:50:37 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 15:50:47 2015] [error] [client 150.142.132.10] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 15:50:47 2015] [error] [client 150.142.132.10] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 16:00:24 2015] [error] [client 150.142.132.78] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 16:00:24 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/error
[Wed Sep 30 16:00:28 2015] [error] [client 150.142.132.78] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 16:00:49 2015] [error] [client 10.50.97.216] File does not exist: /var/apache2/newdevproxy/htdocs/itrak
[Wed Sep 30 17:23:13 2015] [error] [client 10.50.97.216] Directory index forbidden by Options directive: /var/apache2/newdevproxy/htdocs/
[Wed Sep 30 17:23:13 2015] [error] [client 10.50.97.216] File does not exist: /var/apache2/newdevproxy/htdocs/error

Following is the access_log:

10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/faces/login.jsp HTTP/1.1" 200 9303 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/theme/Master.css HTTP/1.1" 200 916 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/theme/tabpanel.css HTTP/1.1" 200 20427 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/theme/stylesheet.css HTTP/1.1" 200 46347 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/theme/images/c005cut.gif HTTP/1.1" 200 2292 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/theme/images/page_white_office.png HTTP/1.1" 200 779 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:06:08 -0400] "GET /itrak/theme/images/007il.gif HTTP/1.1" 200 1148 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:14:58 -0400] "GET /itrak/faces/login.jsp HTTP/1.1" 200 9227 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:14:58 -0400] "GET /itrak/theme/Master.css HTTP/1.1" 200 916 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:14:58 -0400] "GET /itrak/theme/tabpanel.css HTTP/1.1" 200 12184 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:14:58 -0400] "GET /itrak/theme/stylesheet.css HTTP/1.1" 200 12184 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:15:58 -0400] "GET /itrak/faces/login.jsp HTTP/1.1" 200 9227 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:15:58 -0400] "GET /itrak/theme/Master.css HTTP/1.1" 200 916 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:18:38 -0400] "GET /itrak/faces/login.jsp HTTP/1.1" 200 9303 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:19:03 -0400] "GET /itrak/faces/login.jsp HTTP/1.1" 200 9227 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:15:58 -0400] "GET /itrak/theme/stylesheet.css HTTP/1.1" 200 13584 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
150.142.132.129 - - [30/Sep/2015:16:15:58 -0400] "GET /itrak/theme/tabpanel.css HTTP/1.1" 200 13480 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)"
10.50.97.216 - - [30/Sep/2015:16:21:26 -0400] "GET /doh2/applinks/chpkids HTTP/1.1" 404 1214 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:21:41 -0400] "GET /itrak/faces/login.jsp HTTP/1.1" 200 9227 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
10.50.97.216 - - [30/Sep/2015:16:21:40 -0400] "GET /doh2/applinks/edocp HTTP/1.1" 200 8340 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:22:08 -0400] "GET /doh2/applinks/edocp HTTP/1.1" 200 8340 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
10.50.97.181 - - [30/Sep/2015:16:22:39 -0400] "GET /doh2/applinks/edocp HTTP/1.1" 200 8340 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:18:38 -0400] "GET /itrak/theme/stylesheet.css HTTP/1.1" 200 10836 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:18:38 -0400] "GET /itrak/theme/tabpanel.css HTTP/1.1" 200 12184 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:26:20 -0400] "GET /doh2/applinks/edocp HTTP/1.1" 200 8340 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:22:01 -0400] "GET /itrak/theme/stylesheet.css HTTP/1.1" 200 14932 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
150.142.132.129 - - [30/Sep/2015:16:22:01 -0400] "GET /itrak/theme/tabpanel.css HTTP/1.1" 200 10836 "http:/newdevproxy/itrak/faces/login.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"

Please help!

I’m getting 503 error instead of 404

When I append a random page name in my website's domain, The server returns: error 503 internal server error. Which is not the case. Because the requested page doesn't exist at all. For example: When I type: Www.mysite.Com/foobar.php The server fires a 503 internal server error. Even though the foobar page doesn't Exist!! Meanwhile, when I type foobar.html it gives 404 page not found error which is correct. So how can I fix this? Thanks in advance. Edit:
My problem is whenever I request a random page name from my website, it gives 503 error. which is wrong I want to make it so that when I request a none existing page, it gives error 404, not 503.

Apache: Install Baikal besides Seafile

I need a hint in which direction I should look for an answer on this.

I have set up a Seafile server which is accessible under https://subdomain.no-ip.org, i now want baikal to be accessible under https://subdomain.no-ip.org/baikal

However, I can't get it running because i always get a message from Seafile that this directory does not exist. (I guess seafile thinks it should be a subdirectory)

my recent try to configure apache - sites-enabled/default-ssl

<VirtualHost *:443>
    ServerAdmin [email protected]
    Servername gasslnet.no-ip.org
    DocumentRoot /var/www
    Alias /media /home/andie/seafile-directory/seafile-server-latest/seahub$
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    <Directory "/var/www/baikal/html">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

My Seafile-Settings:

ccnet/ccnet.conf

SERVICE_URL = https://subdomain.no-ip.org

seahub_settings.py

FILE_SERVER_ROOT = 'http://subdomain.no-ip.org/seafhttp'

I think the issue is in the seafile configuration, if seafile would be accessible under url/seafile and not only the url the problem should be solved. I tried changing the SERVICE_URL, but no effect.

Do you have any ideas about this?

Using WebDav for a Public File Share

I'm new to WebDav. I'd like to replicate the Dropbox/public folder functionality. That allows any user with the correct URL to download a file, but no unauthenticated user can access a list of the files in the subdirectory or make any changes to the public folder.

I'd like to be able to send my client a URL to a file for download without exposing the whole contents of the share and, importantly, without requiring the client to have a user id and password.

The WebDav directory should also not be alterable or viewable by anyone who doesn't have a user id and password.

The WebDav directory is isolated on my server and I can alter .htaccess files.