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) Code:
/var/www/html Code:
#cd /sdb1/www/yum Code:
#cp /mnt/RHEL_5/Server/* . Code:
#vi /etc/httpd/conf/httpd.conf Code:
#service httpd restart 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 |
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 |
Quote:
Nope, It is still not working I get an error of Page not found |
This is a small update
I gave the Code:
baseurl=http://192.168.0.106/ 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/ |
1 Attachment(s)
Attachment 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 |
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/ Code:
192.168.45.100/yum 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> |
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 |
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. |
All times are GMT -5. The time now is 03:00 PM. |