Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to do the transition from a regular hosting to a dedicated server but I don't know how to set up a public_HTML folder so that my IP redirects to it by default .

I created a directory called Public_HTML on the root.

How could all visits to the IP to it? I believe it's done with a DNS A record or such, but I'm not sure.

share|improve this question

migrated from serverfault.com Sep 22 '11 at 10:06

This question came from our site for professional system and network administrators.

1 Answer 1

Seems like your "regular hosting" uses Apaches mod_userdir, to serve files. This meens, you have a folder beneath your users' home (or whatever is configured), called "public_html".

If you want to switch over to your dedicated server, you have to install a webserver first, you can't just create a "public_html" folder and the files get served!

If you installed a webserver, your HTML-files are going to the configured document_root of your website. If you use Apache, this is by default /var/www/ (Debian/Ubuntu).

Every folder you create beneath /var/www will be accessible via "yourdomain.com/folder".

Your Domain A-Record has to point to the new server of course! To achive this, your provider usually has an interface, to configure DNS. If you can not configure your DNS by yourself, ask your hosting provider for help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.