LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Web site hosting (https://www.linuxquestions.org/questions/linux-newbie-8/web-site-hosting-287828/)

Xonoss 02-08-2005 04:11 PM

Web site hosting
 
I currently have a Fedora Linux server, i had someone admin it for me, I need to be able to do a few things myself like adding web sites. I know using the command console adding a folder to catch a URL has something to do with the command mkdir. But after that im lost lol :) I would love any info anyone could give me on how to add folders for websites to my server. The more detail the better, im not an idiot, just new to Linux. Thx for any help.

Matir 02-08-2005 04:17 PM

Well, is it safe to assume you are using apache to serve webpages? If so, you'll need to create a folder (or user) for the new web[pages/site] and then modify httpd.conf as needed. Are you trying to add new domains, or just a new subfolder?

csfalcon 02-08-2005 04:20 PM

To create another folder under your URL is simply creating a folder under the root directory of your website. If you have the apache httpd installed, the root directory of the website should be /var/www/html/<website> (replace <website> with whatever the directory name it is in.

Code:

cd /var/www/html/<website>
mkdir <new directory name>


Xonoss 02-08-2005 04:20 PM

Yes im using apache to serve webpages. Im trying to add new domains. I need to make the folder for the new URL. Im just lost on how to do so....... Ok i was able to add the new folder, but what else do i need to do to make it catch the URL? im not using a name server just an IP address. So right now the URL is being caught by the IP address and not making it to the new folder i made.

Matir 02-08-2005 09:07 PM

Are you using virtual hosts? Look in apache.conf (or httpd.conf, depending on distro) and look for how it's currently set up.

Xonoss 02-08-2005 09:55 PM

im not sure how to look at the apache.conf file, but i do believe it is using virtual hosts


All times are GMT -5. The time now is 10:34 PM.