Domain to Domain

Discussion in 'Systems Administration' started by nflug, Aug 15, 2015.

  1. should be instant, rename your subdomain and sub folder to just "bans" makes it a whole lot easier :)
  2. Nooothing, I have renamed it :/
    Still: Error: Cant find Server
  3. Have you setup the sub-domain already?
  4. No, LOL
    Im So bad I know it xD
  5. But still nothing -.-
  6. You are looking to create a subdomain, so you need to create a virtual host on your VPS.

    1) Create a file named '' replacing everything with your own info.
    2) Paste this into it:
    Code (Text):

    <VirtualHost *:80>
       ServerName [SUBDOMAIN GOES HERE]
       ServerAdmin [ADMIN EMAIL HERE]
       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
    Replacing everything with your own info.
    3) From the command line use 'a2ensite' replacing everything with your own info.
    4) Clear your browsers cache (as I suspect you have tried to access the site a few time ;)
    5) Have an 'A' record pointing to your servers IP.

    Why in gods name are you trying to use .htaccess to create subdomain?
  7. ERROR: Site does not exist!
  8. Then you didn't create the file correctly. It needs to be located in /etc/apache2/sites-available/ if you are using Ubuntu /etc/httpd/sites-available/ on CentOS I believe. Sorry, I should have mentioned this before.
  9. If you have webmin, i recommend setting up virtualmin with it.
    I have a webmin install with virutalmin and it looks like this:
    I blurred out some domains.
  10. Looks cool I will try it
  11. I have enabled it now, but nothing :/ Still Cant reach Server
  12. The default theme is awful, but there are a lot of cool free themes out there
    You can add per-domain options:
  13. And you have your A record setup correctly?

    Could you also paste your .conf file you created?

    Finally, what is the error?
  14. A Record YIP
    Code (Text):

    <VirtualHost *:80>
      ServerAdmin myemail
      DocumentRoot /var/www/bans/
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
    Its German and it mean: Error: Server not found
  15. Everything is set. A records will take around 1-2 hours however sometimes upto 24, or even 48.

    Also, I am guessing that you didn't put myemail as your AdminEmail lol
  16. A records take 15min-1 hour, Only Nameservers take about 24 hours to propogate.
  17. Now my hole Website is down and I must contact the Support gg
  18. Yes, that can take upto 24 hours, there is no set time thus you cannot guarantee the A record will be propagated within the time.

    Your whole website won't be down of changing an A record or adding a new site. However it's possible it may be if you start editing the .htaccess can I asked the error?
  19. 4chan


    What is your Skype? I'll help you out directly (sysadmin).
  20. Ugh, why are you condoning .htaccess for this? Just make a virtual host, and make a new a record.
    • Agree Agree x 2