View previous topic :: View next topic |
Author |
Message |
FungosBauux n00b

Joined: 04 Jun 2003 Posts: 36 Location: CWB
|
Posted: Wed Dec 03, 2003 11:11 pm Post subject: Apache2 <Directory> and <VirtualHost> |
|
|
Hi, sorry to post it here, but the Gentoo comunity is very helpfull, then Im trying here... Im have a serious problem with Apache2 (personal problem.. ) its killing me!!!
Im trying to put working a local webserver for development.. anybody can help me to setup my box to get working on any of these ways?
i.e.:
server: development (localhost)
port: 8080
i want to create sub domains like:
work1.development
work2.development
...
my dirs look like:
/web/development
/web/work1
/web/work2
each one have inside:
vhost.conf
html/
logs/
cgi-bin/
my vhost.conf for every one (subst X for each work number.. workX = { work1, work2 ,..., workN} ) :
Code: |
<VirtualHost _default_>
ServerName workX.development
ServerAlias workX.development
ServerAdmin webmaster@workX.development
<IfModule mod_dir.c>
DirectoryIndex index.php index.htm
</IfModule>
DocumentRoot /web/workX/html
<Directory "/web/workX/html">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Aliases
ScriptAlias /cgi-bin/ /web/workX/cgi-bin/
<Directory "/web/workX/cgi-bin">
Options ExecCgi
Order allow,deny
Allow from all
</Directory>
ErrorLog /web/workX/logs/net_error.log
TransferLog /web/workX/logs/net_access.log
HostNameLookups off
</VirtualHost>
|
but this give me : could not locate remote server
then i tried <Directory> :
host: development
subs:
development/work1
development/work2
....
with this vhost.conf for each:
Code: |
Alias /workX /web/workX/html
<Directory /web/workX/html>
Order Allow,Deny
Options ExecCGI
AllowOverride All
Allow from all
</Directory>
|
and i get: Forbidden: the requested URL /workX was not found on this server.
im need this.. for 2 reasons:
1. get my local web dev working
2. get bugzilla working... i merged bugzilla but it doesnt work ...
i know, its my fault, but i doesnt undestand apache very well.. im trying to learn how to get a full web server working in less than 24h ...
im using:
Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.3 Server at development Port 8080 _________________ Anata wa okama desu ne. |
|
Back to top |
|
 |
gigatexal n00b

Joined: 07 Oct 2003 Posts: 44 Location: Rexburg, Idaho
|
Posted: Thu Dec 04, 2003 1:47 am Post subject: |
|
|
bump?
alex _________________ _________________
Alex
amd64 3000 (socket 754)
1GB ram
asus k8v deluxe
80GB hdd
ati 9500 pro
gentoo 2005.1 and winxp |
|
Back to top |
|
 |
Chris W l33t


Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Thu Dec 04, 2003 7:16 am Post subject: |
|
|
At a cursory glance the config looks close. You'll need a Code: | NameVirtualHost address | in the main configuration file before the vhost config files are included. The address should be the address that workX.development resolves to e.g. Code: | NameVirtualHost 192.168.1.1
<VirtualHost workx.development>
ServerName workx.development
etc...
</VirtualHost> | Other possible problems:
Do your clients have host file entries for workx.development or is DNS being used to resolve these?
Are your clients HTTP/1.1 capable (needed for name based virtual hosts)?
An alternate approach is to use port based virtual hosting - different devs on different ports, same server name and address. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|