Question: Using Apache 2.4 on OS X Yosemite. Need to modify this virtual host for it to redirect `http://server.kibana` and `http://www.server.kibana` to `https://server.kibana`

Here is the Vhost:

```
<VirtualHost *:8443>
            ServerName www.server.kibana
            ServerAlias server.kibana
            ServerAdmin admin@server.kibana
           # RedirectPermanent http://server.kibana https://server.kibana
           # DocumentRoot /usr/local/var/www/kibana-4.0.2-darwin-x64/src/public
            SSLEngine on
            SSLCertificateFile "/usr/local/etc/apache2/2.4/ssl-keys/server.crt"
            SSLCertificateKeyFile "/usr/local/etc/apache2/2.4/ssl-keys/server.key"
        #
        # Proxy
        #
    ProxyRequests Off
    <Proxy *>
        Order Allow,Deny
        Allow from all
        AuthType Basic
        AuthName "Authenticated proxy"
        AuthUserFile /usr/local/etc/apache2/2.4/elastic.htpwd
        Require valid-user
    </Proxy>
        ProxyPass / http://127.0.0.1:5601
        ProxyPassReverse / http://127.0.0.1:5601
        RewriteEngine on
        RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
        RewriteRule .* http://127.0.0.1:5601%{REQUEST_URI} [P,QSA]
            ErrorLog /usr/local/var/log/apache2/kibana_error.log
            LogLevel warn
            CustomLog /usr/local/var/log/apache2/kibana_access.log combined
</VirtualHost>

```

Any suggestions what to add or how to modify the RewriteRule and RewriteCond? Thanx!

Answer: 
You can make a *symbolic link* to that directory, somewhere convenient. I would not use the word *dev* which in \*Nix systems is a directory of its own, let' s call it *mydev*.

```
     ln -s ~/Dropbox/Dev/CompanyA ~/mydev

```

This creates a symbolic link, called mydev, in your Home directory (change its location or name as you prefer). Now, every time you need something in ~/Dropbox/Dev/CompanyA, you may just use *mydev* instead. For instance,

```
     cd ~/mydev

```

lands you inside ~/Dropbox/Dev/CompanyA transparently (*i.e.*, without you noticing anything). You can read files there, 

```
     more ~/mydev/myfile.txt

```

or create subdirectories 

```
     mkdir ~/mydev/newsub

```

and they will magically appear in ~/Dropbox/Dev/CompanyA. Basically, you can do through *mydev* **everything** you want to do in ~/Dropbox/Dev/CompanyA.
The first thing you need to know is the difference between a [symbolic link](https://en.wikipedia.org/wiki/Symbolic_link) and an [Alias](https://en.wikipedia.org/wiki/Alias_(Mac_OS)).

Symbolic Links are from Unix and are available to use in OSX and Linux. Aliases are icon representations of other items (files or folders) and are equivalent to a Windows Shortcut.

For developing software, a Symbolic link is best.
For easy access to a folder in the Mac OS Finder, you would create an Alias.