{"action":"opened","issue":{"url":"https://api.github.com/repos/eisop/webserver/issues/19","repository_url":"https://api.github.com/repos/eisop/webserver","labels_url":"https://api.github.com/repos/eisop/webserver/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/eisop/webserver/issues/19/comments","events_url":"https://api.github.com/repos/eisop/webserver/issues/19/events","html_url":"https://github.com/eisop/webserver/issues/19","id":152596514,"number":19,"title":"TODO: Distinguish logs of multiple wsgi scripts when they share one log file","user":{"login":"CharlesZ-Chen","id":7701109,"avatar_url":"https://avatars.githubusercontent.com/u/7701109?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesZ-Chen","html_url":"https://github.com/CharlesZ-Chen","followers_url":"https://api.github.com/users/CharlesZ-Chen/followers","following_url":"https://api.github.com/users/CharlesZ-Chen/following{/other_user}","gists_url":"https://api.github.com/users/CharlesZ-Chen/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesZ-Chen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesZ-Chen/subscriptions","organizations_url":"https://api.github.com/users/CharlesZ-Chen/orgs","repos_url":"https://api.github.com/users/CharlesZ-Chen/repos","events_url":"https://api.github.com/users/CharlesZ-Chen/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesZ-Chen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-02T17:06:44Z","updated_at":"2016-05-02T17:06:44Z","closed_at":null,"body":"Now we may have four wsgi scripts serve for different purposes:\r\n\r\n- WSGIScriptAlias /live  .../checkerweb.wsgi  for showing released version of CF\r\n- WSGIScriptAlias /live-dev .../checkerweb-dev.wsgi for showing development version of CF\r\n- WSGIScriptAlias /rise4fun .../checkerweb-rise4fun.wsgi for rise4fun integration\r\n- WSGIScriptAlias /rise4run-dev .../checkerweb-rise4fun-dev.wsgi for rise4fun integration development\r\n\r\nAll of above wsgi scripts delegate to the same virtual host listening on port 80 because we currently only have 80 port avaliable for public access, which means these wsgi scripts will also have to share the same apache log files (error log  and access log) because apache only allocate one set of log files per virtual host.\r\n\r\nThus, we might need to customise our log format in order to distinguish logs of these wsgi scripts.\r\n\r\nFollowing links might be helpful (not carefully read about it, but leave here for possible future use):\r\nhttp://httpd.apache.org/docs/2.0/vhosts/fd-limits.html#splitlogs\r\nhttp://httpd.apache.org/docs/2.0/mod/mod_log_config.html#logformat\r\nhttp://httpd.apache.org/docs/2.0/programs/other.html\r\n"}}