Solved

Location of web site on SuSE linux

Posted on 2000-04-24
5
230 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

813 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

10 Experts available now in Live!

Get 1:1 Help Now