Solved

Location of web site on SuSE linux

Posted on 2000-04-24
5
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

636 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