By PowerTurtle
Hello! I got a little problem atm with my server/domain… I have been trying to set up a subdomain, but every time i do it, it some how does not work as it should…
When i visit my site with https i come to my main domain(powerturtle.me) but with http it show the folder/content of my subdomain(nightdriver.powerturtle.me) My subdomain works just fine, with showing the content of the subdomain folder
They are both placed in www/html and www/nightdriver I have 2 sites enabled with virutel host files, pointg in the diffrent folders
I hope some one can help me…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Sorry for the late reply, i have been bussy with my school. Here is my conf file for my main domain:
<VirtualHost *:443>
ServerName powerturtle.me
ServerAlias www.powerturtle.me
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /root/powerturtle.me.crt
SSLCertificateKeyFile /root/powerturtle.me.key
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
And here it is for my subdomain:
<VirtualHost *:80>
ServerName nightdriver.powerturtle.me
ServerAlias www.nightdriver.powerturtle.me
ServerAdmin jacob@powerturtle.me
DocumentRoot /var/www/nightdriver/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.