Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

virtual host questions

  Date: Dec 06    Category: Unix / Linux / Ubuntu    Views: 421
  

On my computer I have my www in my home directory.
I setup in httpd.conf:
<VirtualHost ">
ServerName wadesmart
DocumentRoot /home/wadesmart/www
</VirtualHost>

And I do all my work from wadesmart/filename

My friend in Russia is doing the same thing but her computer we cant get
things to work out.

If anyone has any ideas??

Share: 

 

8 Answers Found

 
Answer #1    Answered On: Dec 06    

"Can't get things to work out"... hmm. could be just about anything.

 
Answer #2    Answered On: Dec 06    

It might be anything but your response didnt give me anything else to try.

 
Answer #3    Answered On: Dec 06    

You haven't given us enough meaningful and coherent information to do any
analysis on.

 
Answer #4    Answered On: Dec 06    

My crystal ball is out for repairs at the moment. If you would like some
troubleshooting advice, pray describe the symptoms in a bit more detail
than "can't get things to work out" so that we might have some chance of
understanding the situation.

If you want me to play 20 questions, the first one would be "does she
have a working internet connection" -

 
Answer #5    Answered On: Dec 06    

Ok, this is what we've done.

In httpd.conf created:
<VirtualHost ">
ServerName dursk
DocumentRoot /home/dursk/www
</VirtualHost>

<VirtualHost ">
ServerName localhost
DocumentRoot /home/dursk/www
</VirtualHost>

In the hosts file:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 dursk

127.0.1.1 NOX #not sure what this is.

When you go to localhost is shows he defaut apache "It Works" from
/var/www.

The hostname of the computer is dursk.

 
Answer #6    Answered On: Dec 06    

She was able to get phpinfo.php in the /var/www and it shows doc root as
/var/www but also that the address is ::1. Can this be screwing up the
doc root?

 
Answer #7    Answered On: Dec 06    

See my config below from an old test build I did once
For a start I think " should be *
Not sure if any other differences...

xxxxxxxxxxxxxxxxxxxxxxxxxxx

# NameVirtualHost xxxxx.gotdns.com:80
<VirtualHost *>
# ServerAdmin webmaster@localhost
ServerAdmin xxx@...

ServerName xxxxx.gotdns.com:80
ServerAlias www.xxxxx.gotdns.com:80
ServerAlias xxxxxx:80
DocumentRoot /var/www/moodle/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/moodle/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

 
Answer #8    Answered On: Dec 06    

I was using the Unbuntu server way (which is not the same way other Linux
servers do it). The site definitions are in sites-available, then you create
create a symbolic link to the new configuration file in the this folder from the
sites-enabled folder:
sudo ln -s /etc/apache2/sites-available/xxxx /etc/apache2/sites-enabled/xxxx

 
Didn't find what you were looking for? Find more on virtual host questions Or get search suggestion and latest updates.




Tagged: