Solved

Location of web site on SuSE linux

Posted on 2000-04-24
5
229 Views
Last Modified: 2013-12-16

I had created a web site on Slackware linux which by apache server requirements all I needed was to call my home page index.html.and all was well.

I changed my linux flavour to SuSE linux but I have a problem knowing where to place my web site to be accessed by the public.
 
Can anyone HELP please?

0
Comment
Question by:Metal
  • 3
5 Comments
 
LVL 12

Accepted Solution

by:
j2 earned 20 total points
ID: 2743837
locate httpd.conf and search for "DocumentRoot" thats where you should put it to get it as the "initial" page for a hit on your system.
0
 
LVL 2

Expert Comment

by:ksemat
ID: 2781311
I use suse and this is what you should do go to /etc/httpd and edit httpd.conf to change DocumentRoot to the directory
 where your page is or alternatively go to the bottom of the file and use the VirtualHosts example there to set it up as a Virtual host.
if you have a registered domain name also set ServerName to your.domain.name
if not you will have to see it by putting your ip in the address bar of your web browser.using Virtual Hosts would allow you to set multiple sites to the same ip as long as the DNS points to that IP for them.
0
 
LVL 2

Expert Comment

by:ksemat
ID: 2781414
I use suse and this is what you should do go to /etc/httpd and edit httpd.conf to change DocumentRoot to the directory
 where your page is or alternatively go to the bottom of the file and use the VirtualHosts example there to set it up as a Virtual host.
if you have a registered domain name also set ServerName to your.domain.name
if not you will have to see it by putting your ip in the address bar of your web browser.using Virtual Hosts would allow you to set multiple sites to the same ip as long as the DNS points to that IP for them.
0
 
LVL 2

Expert Comment

by:ksemat
ID: 2818060
The documentRoot in suse linux is usr/local/httpd/htdocs if you don't want to fight with configuration changes just publish you site into this directory and you'll be able to access it via a browser
0
 

Author Comment

by:Metal
ID: 2855117
j2
Should I reboot the system to effect the changes? I made the change but it is still pointing to apache server instead of my web site.

I am yet to try out ksemat's virtualhosts alternative.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now