Exclude an alias from virtualhost proxypass

This is how I was able to achive the desired outcome. Following is the working configuration where ProxyPassMatch ^/myapp ! did the trick and except the (server-address)/myapp, all the requests are being proxying to the other server which is open-erp running at port 8069: <VirtualHost *:80> ServerName test.myserver.com Alias /myapp /var/www/myapp <Directory /var/www/myapp> Options Indexes … Read more

How to serve other vhosts next to Gitlab Omnibus server? [Full step-by-step solution]

About these But Omnibus listen 80 and doesn’t seem to use neither Apache2 or Nginx [, thus …]. and @stdob comment : Did omnibus not use nginx as a web server ??? – Wich I responded I guess not because nginx package isn’t installed in the system … In facts From Gitlab official docs : … Read more

How to create virtual hosts in MAMP?

While googling, I found these steps to easily create virtual hosts on MAMP: Open your console in mac and edit your hosts file like this sudo vim /etc/hosts This opens a system file that contains the following line: 127.0.0.1 localhost add your desired host name after local host: 127.0.0.1 localhost mysite.loc press ESC, then :wq! … Read more

VirtualHost always returns default host with Apache on Ubuntu 14.04

I was facing this issue, and it turned out I had to disable the default virtual host. sudo a2dissite 000-default.conf Possible Expanation: According to the apache documentation An In-Depth Discussion of Virtual Host Matching: […] If the main server has no ServerName at this point, then the hostname of the machine that httpd is running … Read more

Access virtual host from another machine over LAN

In addition to danp’s answer, you can access the virtual host without having to change the client machine’s etc/hosts file by assigning a port to the virtual host. This is ideal if you want to access the server with a mobile or tablet device: Edit server’s httpd.conf file at: \wamp\bin\apache\apache2.2.x\conf\httpd.conf Search for “Listen” (around line … Read more

Apache VirtualHost slow lookup

Add your virtual hosts to the first line: 127.0.0.1 localhost test.local work.local yii.local And remove the last line. That should do the trick. Your vhosts are now an alias for localhost. It’s not a good idea to have the same IP-address in multiple lines. This just confuses the DNS-cache.

Vagrant in production

Vagrant should be used more like a staging environment to test your infrastructure changes. It should be your test bed for automated infrastructure changes. The way we use it at my company is like so: Create VMs for our managed servers in Vagrant. Create puppet definitions for each server. Create cucumber tests for each server. … Read more

How do I use https (SSL) in XAMPP while using virtual hosts

SSL, of the HTTPS://url.here/ variety, is entirely handled by Apache and has nothing to do with PHP, or any of PHP’s extensions/modules, or any php.ini settings. A typical SSL Enabled VirtualHost looks like this and contains at least these parts… <VirtualHost *:443> DocumentRoot “C:/WampDeveloper/Websites/www.example.com/webroot” ServerName www.example.com ServerAlias example.com SSLEngine On SSLCertificateFile “C:/WampDeveloper/Websites/www.example.com/certs/public.crt” SSLCertificateKeyFile “C:/WampDeveloper/Websites/www.example.com/certs/private.key” <Directory … Read more