The online racing simulator
Apache Virtual host and Ubuntu Virtual server question
Hey,

I'm trying to setup a home developemnt environment.
I have an Ubuntu 7.10 Virtual Server setup on my XP box using VMware.
I have installed apache and the ubuntu server has it's own local IP of 192.168.1.6
I set up the virtual host files and it all works perfectly from within the Ubuntu machine. For example if i go to niki.mydomain.com it will open correct site.

However,

From my windows machine if i go to niki.mydomain.com it brings me to the apache default "www" folder. The same as going to 192.168.1.6 would do. I have set my windows host file properly.

Anyone got any ideas? Pretty please!!!
My /etc/apache2/httpd.conf file is blank...
Surely that's not right?
httpd.conf?
Yeh sorry thats what i meant.
Fixed the above post.
Any chance it (httpd.conf) could be in your /usr/... ?
nope...
It's in /etc/apache2/ but the file is empty if i open it
anyone?
#8 - arco
It shouldn't be blank, that's correct. Unless it loads the config file from somewhere else.
What's the output of "apache2 -V" ?
Server version: Apache/2.2.4 (Ubuntu)
Server built: Feb 4 2008 20:30:42
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
#10 - arco
Quote from nikimere :-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

Shouldn't be blank then. You should try and get the correct conf file somehow. I'm sitting on Gentoo here, and I think the config file here differs from the Ubuntu one, so I can't give you that.

Are there any modules loaded at all?

~ # apache2 -t -D DUMP_MODULES

[Sat Mar 01 19:26:17 2008] [error] (EAI 5)No address associated with hostname: Could not resolve host name niki.mydomain.com -- ignoring!
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
mime_module (shared)
negotiation_module (shared)
php5_module (shared)
setenvif_module (shared)
status_module (shared)
Syntax OK

i'll try find the httpd.conf somewhere. thanks for the help btw
Quote from nikimere :
i'll try find the httpd.conf somewhere. thanks for the help btw

Your server's config file is /etc/apache2/apache2.conf. Try looking in that instead of looking for httpd.conf.

Or is that something completely different?
#13 - arco
Quote from NotAnIllusion :Your server's config file is /etc/apache2/apache2.conf. Try looking in that instead of looking for httpd.conf.

Ah yes, that slipped my eyes. It's apache2.conf that's in use on your system nikimere, so it doesn't matter if httpd.conf is empty.

Also, see if the info here helps: http://wowtutorial.org/en/node/24
Quote from arco :Also, see if the info here helps: http://wowtutorial.org/en/node/24

You LEGEND!!
That tutorial worked perfectly!
I've been messing around with tutorials for the past 2 days and this is the ONLY one that has worked!
Thanks a mill!

FGED GREDG RDFGDR GSFDG