Search:

Type: Posts; User: zhanjh; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    60,289

    [ubuntu] Re: How to set ServerName in Apache2?

    Hello daboroe, do you mean put the "ServerName" at the top of the file "/etc/apache2/sites-available/default". I've tried it ,the result turned out to be no differences.

    :o I thought the first...
  2. Replies
    9
    Views
    60,289

    [ubuntu] Re: How to set ServerName in Apache2?

    Thank you Spiderbatdad and Windependence.Without your help I cannot resolve it.

    But I got a new problem. I found the error message in /var/log/apache2/error.log:
    [Sat May 09 22:27:58 2009]...
  3. Replies
    9
    Views
    60,289

    [ubuntu] Re: How to set ServerName in Apache2?

    I added the servername in the /etc/apache2/sites-available/default.But still not working.

    /etc/apache2/sites-available/default:
    <VirtualHost *:80>
    ServerAdmin webmaster@localhost

    ...
  4. Replies
    9
    Views
    60,289

    [ubuntu] How to set ServerName in Apache2?

    I've added these in the file /etc/apache2/httpd.conf

    <VirtualHost *>
    ServerName zhanjh_server
    DocumentRoot /var/www
    <Directory /var/www>
    AllowOverride All
    Options...
Results 1 to 4 of 4