# Attempting to Install Cockpit within a subdirectory

**URL:** https://discourse.getcockpit.com/t/attempting-to-install-cockpit-within-a-subdirectory/1296
**Category:** Support
**Created:** [March 26, 2020, 4:34am UTC](https://discourse.getcockpit.com/t/attempting-to-install-cockpit-within-a-subdirectory/1296 "2020-03-26T04:34:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![smolDev-ai](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/smoldev-ai/32/527_2.png) [@smolDev-ai](https://discourse.getcockpit.com/u/smolDev-ai)
#### Post date: [March 26, 2020, 4:34am UTC](https://discourse.getcockpit.com/t/attempting-to-install-cockpit-within-a-subdirectory/1296/1 "2020-03-26T04:34:36Z")

</div>

Hi! I learned about Cockpit CMS a few weeks back and have been trying to install it on a digital ocean droplet using apache2 & php 7.2 following [this tutorial](https://websiteforstudents.com/install-cockpit-cms-on-ubuntu-16-04-18-04-18-10-with-apache2-and-php-7-2/) with minor modifications

The modifications I made were:

- my conf is named with my domain

- My conf also looks like this:  
\<VirtualHost \*:80\>  
ServerAdmin [email@email.com](mailto:email@email.com)  
DocumentRoot /var/www/my\_domain/  
ServerName my\_domain.com  
ServerAlias www.my\_domain.com  

The behavior I’ve been getting is:

- Install will load properly
- auth/login will 404

There waas a period of an hour where the dashboard would properly display, but none of the links within it would work (i.e. my\_domain/dashboard/collections would return a 404)

I really hope someone can help me because cockpit seems perfect for what I want to do. If there’s anymore information you need, please let me know. Thank you in advance!
