HTTP SERVER on FEDORA 3 ???

Status
Not open for further replies.

mediator

Technomancer
Hi guys! I have IIS installed on windows, but want to run http server on linux!
I want to know the steps to do that and whether we have to make any alias like we do for IIS!
 

firewall

In the zone
on Fc3 you can run Apache as your web server. Apache is started and stopped with the following command

Code:
service httpd start

all Apache-specific configuration parameters are now stored in httpd.conf

There are two ways to edit Apache's server configuration: Using a graphical tool ("Applications" » "System Settings" » "Server Settings" » "HTTP") or using a text editor to edit the httpd.conf file directly. Before using the graphical tool, be sure to make a backup copy of your configuration file as any changes made outside of the graphical tool can be overwritten.

:)
 

GNUrag

FooBar Guy
theKonqueror said:
U need to make dns entries and set up hostname and domain name 4 httpd.conf to work.
Says who?
All Webservers can run on localhost, as well as on a LAN if it exists without the need of DNS entries or hostnames .
 
OP
mediator

mediator

Technomancer
Alright i got The server running by defaults. But now i want to add aliases and virtual hosts. I need step by step details
 

Deep

Version 2.0
this is what you need to do in the httpd.conf to add virtualhost

Code:
  <VirtualHost IP Address>
       ServerAdmin [email]webmaster@example.com[/email]
       DocumentRoot /home/websites/example.com
       ServerName example.com
       ServerAlias example.com [url]www.example.com[/url]    
   </VirtualHost>
 
OP
mediator

mediator

Technomancer
That was nice, but i want loopback like localhost!
The problem is localhost is /var/www/html
so i want to add alias say "me" so that whenever i do
"*me/" it goes to /home/www/
 

Deep

Version 2.0
Code:
  <VirtualHost *> 
       ServerAdmin [email]webmaster@me.com[/email] 
       DocumentRoot /home/www/ 
       ServerName me.dev 
       ServerAlias me.dev [url]www.me.dev[/url]
   </VirtualHost>
and then add this in UR machine's host file...

Code:
SERVERIP     me

Deep
 
Status
Not open for further replies.
Top Bottom