LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-20-2011, 12:23 AM   #1
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
yum configuration in http server


Hello all,

I already have a yum configured in my machine(RHEL 5.2) in which the baseurl points to the file where repository is created.
But now I want to configure a http server where I can save all the packages and manually check for all RPMs on the browser
and I want to use that particular http link in my baseurl for yum configuration

Well I started with the initial steps i.e
I want this directory
Code:
(/sdb1/www/yum)
to be default instead of
Code:
/var/www/html
Please let me know all the places where I need to make changes for this

Code:
#cd /sdb1/www/yum
(here sdb1 is a folder)

Code:
#cp /mnt/RHEL_5/Server/* .
#cd ..
#createrepo yum/
Code:
#vi /etc/httpd/conf/httpd.conf
<VirtualHost 192.168.0.106:80>
        ServerAdmin root@server.deepsoft.com
        ServerName server.deepsoft.com
        DocumentRoot /sdb1/www/yum/
        <Directory /sdb1/www/yum/>
        Order allow,deny
        Allow from all
        </Directory>
</VirtualHost>
Code:
#service httpd restart
I don't know where I am going wrong
But when I go to browser to check for apache configuration
but it returns with "page not found error"

Can anyonly help me with this apache configuration please
 
Old 10-20-2011, 12:51 AM   #2
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 244
Blog Entries: 3

Rep: Reputation: 17
HI

Check out this you have miss
Options Indexes put that & resolve your prob

<Directory /sdb1/www/yum/>
Options Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


Thanks
dk
 
1 members found this post helpful.
Old 10-20-2011, 01:05 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by pantdk View Post
HI

Check out this you have miss
Options Indexes put that & resolve your prob

<Directory /sdb1/www/yum/>
Options Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


Thanks
dk

Nope, It is still not working
I get an error of Page not found
 
Old 10-20-2011, 02:08 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
This is a small update

I gave the
Code:
baseurl=http://192.168.0.106/
and my yum is working properly

But I don't see any RPMs on browser
How do I configure my httpd.conf so that I can see all the listed rpms inside

Code:
/sdb1/www/yum/
is it possible?

Last edited by deep27ak; 10-20-2011 at 02:14 AM.
 
Old 10-20-2011, 07:42 AM   #5
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 244
Blog Entries: 3

Rep: Reputation: 17
Click image for larger version

Name:	Screen shot 2011-10-20 at 6.03.35 PM.png
Views:	21
Size:	68.3 KB
ID:	8212

check out as you say that i did't wk so i made same environment & found it work. check your conf

<VirtualHost 192.168.45.100:80>
ServerAdmin root@deepak.example.com
ServerName deepak.example.com
DocumentRoot /sdb1/www/
<Directory /sdb1/www/>
Options Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

in client machine add in hosts file
192.168.45.100 deepak.example.com

put you all doc or rpm in yum directory that will listed in browser or make changes which directory
you want to list

Thanks
DK

Last edited by pantdk; 10-20-2011 at 07:45 AM.
 
Old 10-20-2011, 08:17 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
thanx buddy

I was about to ask you a question

You have mentioned a different directory in your httpd.conf file
Code:
DocumentRoot /sdb1/www/
<Directory /sdb1/www/>
and the browser address is different
Code:
192.168.45.100/yum
but then something crossed my mind
I had forgot to mention the Alias name in httpd.conf

This is for all other users who might face this issue in future
Code:
<VirtualHost 192.168.0.106:80>
        ServerAdmin root@server.deepsoft.com
        ServerName server.deepsoft.com
        DocumentRoot /sdb1/www/yum/
        <Directory /sdb1/www/yum/>
        Options Indexes
        Order allow,deny
        Allow from all
        </Directory>
</VirtualHost>

Alias /yum  /sdb1/www/yum
<Directory /sdb1/www/yum/>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>
Thanks again
 
Old 11-17-2011, 06:42 AM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Need to learn apache first.

Regarding to APACHE server just think i am doing it first time .
Things i know about apache is that it has two types.
1-IP based Virtual Hosting
In IP Based virtualk hosting every web site has different IP address & its name should be also different.


2- Name Based Virtual Hosting
In it we have only only one IP address but we can host many web sites on it.In apachi we use "Name Based Virtual Hosting".All ISPS'S IN THE WORLD USE THIS METHOD.

So now 1st i want to configure APACHE "IP based Virtual Hosting" then "Name Based Virtual Hosting" .
Do you know these two configurations.

I am not using DNS at the moment.For apache should i fist
configure DNS then install & configre APACHE,

thanks,
gardenair
 
Old 11-17-2011, 06:48 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
You should start a new thread so that others can also help you as I have already marked the thread as solved.

and for your query, You need a DNS server but not required to manually configure any DNS server for APACHE.

You can always use Google where you can fine a bunch of tutorials regarding apache server

Best of luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum server configuration k.suthar001 Red Hat 2 08-21-2011 10:43 AM
Configuration Tools (Http Server) Abnoba12 Linux - Newbie 1 02-23-2005 11:58 AM
need yum.conf with http server not ftp Boby Fedora 5 05-04-2004 07:12 AM
need yum.conf with http-server not ftp Boby Linux - Networking 0 04-27-2004 09:29 PM
Resolving DNS Queries, HTTP Server Configuration ASP Mandriva 2 12-23-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration