GitLab With Apache2, no directory (Index of /) page

so I'm trying to get GitLab to work with Apache instead of using NGINX & seperate ports - I have this working on my VPS, routing through from port 8080 and is working perfectly fine. I'm trying to get it installed on my dedicated machine which already has something on port 8080 so im trying to use 8081 but for some reason this isn't working.

I'm just getting the page below.

index error page

Here is my gitlab.rb file...

nginx['enable'] = false
external_url ''
external_port '80'
web_server['external_users'] = ['root']

gitlab_git_http_server['listen_network'] = "tcp"
gitlab_git_http_server['listen_addr'] = "localhost:8282"
gitlab_workhorse['auth_backend'] = "http://localhost:8081"
unicorn['port'] = 8081

vhost file...

<VirtualHost *:80>

  ServerSignature Off
  ProxyPreserveHost On
  AllowEncodedSlashes Off

  DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public

  <Location />
    Order deny,allow
    Allow from all

  RewriteEngine on
  RewriteRule .*{REQUEST_URI} [P,QSA]

  <Directory "/opt/gitlab/embedded/service/gitlab-rails/public">
      Options +Indexes

  ErrorDocument 404 /404.html
  ErrorDocument 422 /422.html
  ErrorDocument 500 /500.html
  ErrorDocument 503 /deploy.html

        ErrorLog /var/log/ispconfig/httpd/

        # suexec enabled
        <IfModule mod_suexec.c>
            SuexecUserGroup web1 client1

        # add support for apache mpm_itk
        <IfModule mpm_itk_module>
            AssignUserId web1 client1


When I tail -f the error log for that sub-domain I get the following when trying to access the site

[Sat Jul 01 01:32:36.376367 2017] [authz_core:error] [pid 29103] [client my.ip.address:52279] AH01630: client denied by server configuration: /opt/gitlab/embedded/service/gitlab-rails/public/favicon.ico, referer:

Other than this I can't seem to find any errors in other files - any help / guidance would be much appreciated.

Add exception to WordPress sub folder in htaccess

I checked stack but no-think solve my problem. On my root( / ) i have all wordpress files (wp-content, wp-includes folders etc.). I added a folder there called "market" but any time O try to enter it redirect me to Is there possibility to put exception in htaccess just for and for the other sites just redirect for as always

After page reload, not able to connect to websocket, using Apache ProxyPass

In my wamp server, I can connect to websocket first time and apache proxy pass is works perfect, When I reload the page, I can not make the connection to websocket.

This is my proxypass setup in httpd.conf

ProxyPreserveHost On

ProxyPass /ui/ws ws://
ProxyPassReverse /ui/ws ws://

ProxyPass /ui/services http://localhost:7070/presentation/rest      
ProxyPassReverse /ui/services http://localhost:7070/presentation/rest

I am running my webservices on Java Spring at localhost:7070 and my websocket is running on Akka http 8080 port

When I use the websocket without proxy while testing it works perfectly fine with page reload.

This is error that I get on browser

WebSocket connection to 'ws://localhost/ui/ws' failed: Error during WebSocket handshake: Invalid status line

Appriciate your help

Limit access to Apache on OSM Map Server based on URL

I have successfully set up my own OSN map server using the detailed tutorial on the "Switch to OSM" website: on an Ubuntu 16.04 server. The server works and I can render maps no problem. However, I would like to limit the access to this map server based on URL, so that only the web application that I have developed can render maps using it.

How can I do such a thing? I know it probably has to be done through some apache configs but I was not able to figure it out myself.

.htaccess rewrite help needed

RewriteRule ^([^/.]+)/([^/.]+)$ //root/pages/$1.php?parameter=$2 [L]

RewriteRule ^admin/([^/.]+)$ //root/pages/admin/$1.php [L]
RewriteRule ^admin/([^/.]+)=([^/.]+)$ //root/pages/admin/$2/$1.php [L]

I am getting a page not found error for the last rewrite rule. The first two rewrite rules work fine but I am having trouble with the last one. I already made sure that the file was in the correct folder.

AliasMatch everything except home page to "content" folder

I am putting all of my website's content (aside from the home page) into a "content" folder at the root of the site. This is Apache 2.4.25.

I want to serve the DirectoryIndex (i.e. index.html) at C:/DocumentRoot/. The following works fine for that.

<Directory "C:/DocumentRoot/website">
    Options None
    AllowOverride None
    Require all granted

I then want to have serve the DirectoryIndex at C:/DocumentRoot/content/anything1/anything2. After adding the following, accessing gives a Forbidden error, though the AliasMatch works.

AliasMatch "^/(.+)$" "C:/DocumentRoot/website/content/$1"
<Directory "C:/DocumentRoot/website/content/">
    Require all granted

Any idea what's happening or have a better/working alternative?

CORS issue with Socket.IO and Node.JS on Apache

I've been reading all questions related to this problem. It must be one of the most common issues people face when using Socket.IO and there seems to be many solutions to this problem out there. But none worked for me. Socket.IO and NodeJS work perfectly locally. When I put the code on a VPS, I can't successfully access the server code because it returns me this error:

XMLHttpRequest cannot load http://{THE_SERVER_IP}/ No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.

Here is what I tried so far:

1) Using CORS module

var app = require('express')();
var server = require('http').Server(app);
var io = require('')(server);
var cors = require('cors');


//Socket.IO code(connection, emit, etc)


console.log('Server running at http://{THE_SERVER_IP}:8080/');

2) Setting headers on io variable

io.set( 'origins', '*' );

NodeJS (without Socket.IO module) works, I was able to render a simple HTML and print a "Hello World" message.

This is the client side code:

    <script src="" integrity="sha256-sdmLD9jD1PIzq3KOQPNSGZYxjv76rds79Mnyk5JNp1M=" crossorigin="anonymous"></script>
    <script src=""></script>

        $(document).ready(function() {

            var socket = io('http://{THE_SERVER_IP}:80/node');

            socket.on('text', function(data) {





If it's necessary, this is how Apache redirects requests to NodeJS server:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin [email protected]{THE_SERVER_DOMAIN}
    ServerName {THE_SERVER_DOMAIN}
    ServerAlias {THE_SERVER_DOMAIN}
    DocumentRoot /var/www/node/

   ProxyRequests Off
   ProxyPreserveHost On
   ProxyVia Full
   <Proxy *>
      Require all granted

   <Location /node>
      ProxyPass http://{THE_SERVER_DOMAIN}:8080
      ProxyPassReverse http://{THE_SERVER_DOMAIN}:8080

   <Directory "/var/www/node">
      AllowOverride All


Any help would be appreciated!