LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   multi- website on one IP (https://www.linuxquestions.org/questions/linux-newbie-8/multi-website-on-one-ip-248557/)

rjweng91 10-28-2004 07:35 PM

multi- website on one IP
 
I am kind of new to linux. I am running Fedora Core 2 ( after a week of figuring how to update from core 1). My main web site is ww.hillsiderun.com (yes 2 w's)
I have a cable modem so I have to do port forwarding. because my cable company doesn't allow port 80 access.

Anyways I was trying to make a sub domain with port forwarding and making a folder inside of my main servers folders. that site is ...

cec.hillsiderun.com

You will notice it comes up blank, but if you right click and view source you will notice that there is to be a background image.

My main server the ww.hillsiderun.com I have postnuke on it...
The sub-domain I want to do html....

Secondly I am using Dreamweaver on my windows machine and trying to save the files to the linux server.... is there something special I need to do because I have tried to have a index.html file in there and that comes up blank.
I also have installed and tried to put a index.html file from NVU and that is the blank page you see in there now.

Is there something special I need to do to my confg file... like Alias or something , or is it my path that I have my pictures to?

Please help...
Rjweng91

trickykid 10-28-2004 08:33 PM

For your first question, simply setup a virtual host, along with the correct DNS entries.

Your second question.. setup Samba to share a network drive or share between Windows and Linux.

rjweng91 10-28-2004 08:54 PM

Sorry I wasn't more specific... I do have Samba set up... it just seems that linux doesn't like the Dreamweaver files...

Also when I had cec.hillsiderun.com setup with postnuke I didn't need a virtual server. I just pointed to the correct directory in the port forwarding...it just seems that I took postnuke out and was trying html fiel that they will not show up.

trickykid 10-29-2004 07:48 AM

Quote:

Originally posted by rjweng91
Sorry I wasn't more specific... I do have Samba set up... it just seems that linux doesn't like the Dreamweaver files...
No, you have something setup wrong. I've used Dreamweaver on Windows placing files on a Linux server using Samba with no problems. And Dreamweaver files? They're just html and other web type files. I'd suggest going over your setup for Samba, make sure permissions are ok, etc.

Quote:

Also when I had cec.hillsiderun.com setup with postnuke I didn't need a virtual server. I just pointed to the correct directory in the port forwarding...it just seems that I took postnuke out and was trying html fiel that they will not show up.
I don't know what postnuke was doing for ya but yeah, virtual host is still the answer. Setup apache and your httpd.conf file to include that domain to point to the correct folder to serve the files out to the world... and so on...

ryedunn 10-29-2004 09:49 AM

sorry to chime in here but you might want to verify if you are running apache or apache2. I ran into some big problems when reading apache docs but using apache2.

Anyway if you look at setting up a virtual name server, this should help you out... your config should be something like:

NameVirtualHost *

<VirtualHost *:8080>
ServerName ww.hillsiderun.com
ServerAlias hillsiderun.com
DocumentRoot /etc/httpd/public_html/hillsiderun.com
</VirtualHost>

<VirtualHost *:8081>
ServerName cec.hillsiderun.com
DocumentRoot /etc/httpd/public_html/hillsiderun.com/cec.hillsiderun.com
</VirtualHost>

I think.......
tricky has forgot more than I will ever know, but I just went though this hell myself so I thought I would put my 2 cents in.

R

rjweng91 10-29-2004 03:00 PM

apache
 
ok now when you go to the cec.hillsiderun.com it now shows the files in that directory....
Id there something in the config file that I would have to change, like directory browse?

ryedunn 10-29-2004 09:23 PM

Im a bit lost.. I went to the site and it looks fine.. did you want to see the files or not see them?

trickykid 10-30-2004 10:22 AM

Re: apache
 
Quote:

Originally posted by rjweng91
ok now when you go to the cec.hillsiderun.com it now shows the files in that directory....
Id there something in the config file that I would have to change, like directory browse?

What do you have for your virtual host settings in your httpd.conf file? If you can post that here, that would be great. And if its showing files, well, that's a good sign. If you don't want the Directory Indexing turned on, it all depends on how you've set apache to handle these. Posting your httpd.conf will let us help you configure it correctly.


All times are GMT -5. The time now is 06:46 AM.