Mobile app version of vmapp.org
Login or Join
Gloria169

: Removing the subdomain as a subdirectory in Apache I simply trying to make my webpage come up as owncloud.example.com instead of owncloud.example.com/owncloud. I am running Ubuntu 14.04 and

@Gloria169

Posted in: #Apache2 #Domains #Subdomain

I simply trying to make my webpage come up as owncloud.example.com instead of owncloud.example.com/owncloud.

I am running Ubuntu 14.04 and Apache 2.4, and using OpenSSL. I have tried changing things in my apache.conf and conf-available, and I have changed the root directory to /var/www/ and put the first one in there without any luck.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gloria169

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

The typical way to host a new domain or subdomain under Ubuntu/Debian is covered in this tutorial. Here are the basic steps:


Create the file /etc/apache2/sites-available/owncloud.example.com.conf with contents based on this template:

<VirtualHost *>
ServerAdmin webmaster@example.com
ServerName owncloud.example.com
DirectoryIndex index.html
DocumentRoot /home/www/owncloud.example.com/htdocs/
</VirtualHost>

Put your index.html and other files into /home/www/owncloud.example.com/htdocs/
Run the command sudo a2ensite owncloud.example.com to enable the configuration for the site
Run the command sudo service apache2 restart to restart the web server

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme