: 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
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.
More posts by @Gloria169
1 Comments
Sorted by latest first Latest Oldest Best
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
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.