Jump to content

routing domain name


fredf

Recommended Posts

Do you have access to apache configs? Is this on windows or *nix? What version of apache?

If you have access to the configs - the code here is what you need:

[code]
        NameVirtualHost *:80
        <VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName www.domain.com
        ServerAlias domain.com
        DocumentRoot /home/domain/public_html/
        HostnameLookups Double
        CustomLog /var/log/apache2/access.log combined
        ErrorLog /var/log/apache2/error.log
        Loglevel warn
        <Directory />
                Options FollowSymLinks Indexes MultiViews
                AllowOverride None
        </Directory>
</VirtualHost>[/code]

Try putting the above code in your apache.conf or http.conf depending on your apache setup.
-steve
Link to comment
Share on other sites

Steve, thanks for the reply

I'm working on a Mac using a webmin to edit the configs.. It's version 1.15 with Mandrake Linux 10.0..

I do have access to the config though, and I put the code you posted into http.config.. dropped in my domain name and switched to DocumentRoot to match the one set at beginning of the my http.config.. the virtualhost came up, but it didn't work when I tested it, Is there anything else I need to replace in the code??

There's some other setup options within the virtual to redirect URLs, I messed around a little with these settings but no luck...?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.