Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
apache name
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: apache name

  1. #1

    apache name

    apache 1.3.23 on rh7.2

    server name in httpd.conf is web1. Web1 is resolved using local dns to 10.0.84.21.
    10.0.84.21 is NATed to 218.154.154.214.
    When users from the internet access this site using: http://218.154.154.214 the connect fine and see the main page, but when they try to access internal links on site they see that requests goes to http://web1/link-to-follow and it never got there.
    What should I do to make it work, change ServerName to external ip or anything like that?
    thx.

  2. #2

    Re: apache name

    Server name doesnt' reflect URL's. You are just giving it a name for like the 404 errors and stuff.

    The name for URL's, must be a public DNS A record.

    For example, I named my webserver 'anakin'. When you get a 404 on my webserver, it refrences 'anakin' as the name of the web server, but out on the internet, I have www.j2solutions.net as an A record to my IP address. This is how the internet/DNS works.

  3. #3

    Re: apache name

    I don't want this machine to be registered for DNS name resolution. I want users to access this site using ip address
    http://ipaddress.
    Ther problem comes when they issue:
    http://ipaddress/link-to-follow, then it suddenly becames
    http://web1/link-to-follow, and web1 is a local name of the machine (and ServerName in httpd.conf), and it doesn't work.
    So I just wonder what is wrong here and what is the workaround?

  4. #4

    Re: apache name

    I'm not sure that there is a problem, I think your browsers are automagically resolving that web1 and putting it in there.

    How are you coding in the html link?

  5. #5
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: apache name

    Yeah, I also don't think the server name is anything to do with the way Apache serve web pages and linking them. You must need to make sure that your HTML codes is not static link to the pages but of softlink ( ../cgi-bin/sample.cgi rather than http://www.yourwebsite.com/cgi-bin/sample.cgi )..

    I don't even have server name in my Apache and it works fine....

  6. #6

    Re: apache name

    folks, I think I'm total dummy....how do I make sure that html code is not static but rather a soft link?
    I just installed apache and that's it, web1 is resolved using local lan DNS, I haven't changed the apache defaults...
    But on the other hand when browser is connected over the internet it has no knowledge of local lan dns that resolves web1, I can remove the entry in DNS sevrer but then how local clients will connect to it using the web1 name....

  7. #7

    Re: apache name


    folks, I think I'm total dummy....how do I make sure that html code is not static but rather a soft link?
    I just installed apache and that's it, web1 is resolved using local lan DNS, I haven't changed the apache defaults...
    But on the other hand when browser is connected over the internet it has no knowledge of local lan dns that resolves web1, I can remove the entry in DNS sevrer but then how local clients will connect to it using the web1 name....
    Show us the section where you coded in the html link.

  8. #8
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: apache name

    Yeah, we will need to see the code.. Give us a link or something....

    Softlink works like this.

    If your folder structure is this;

    Code:
                   |folder1 |
                      |
            |folder2|  |folder3|  |folder4|
               |
       |folder5|   |folder6|
    Then if your index.html is in folder1 and link the page in folder2, you code " /folder1/folder2/page.html ".
    If the page is in folder5 and link something in folder4, you code, ../folder4/page4.html , rather than do http://www.yourserver.com/folder1/folder4/page4.html . If your page is in folder5 and link page1 in folder1, then you code, ../../folder1/page1.html .

    This is similar to Linux file system structure and linking them.

    HTH ...

  9. #9

    Re: apache name


    I don't want this machine to be registered for DNS name resolution. I want users to access this site using ip address
    http://ipaddress.
    Ther problem comes when they issue:
    http://ipaddress/link-to-follow, then it suddenly becames
    http://web1/link-to-follow, and web1 is a local name of the machine (and ServerName in httpd.conf), and it doesn't work.
    So I just wonder what is wrong here and what is the workaround?
    If this is your NFuse box that you are referring to, the page is probably getting the server name from whatever name you entered in the Citrix Website Wizard.

    If you want all external users to connect to the box via ip address, you are going to have to enter the machine's as http://your.ip.address.here/citrix_root_folder during the Citrix Website Wizard. However, your internal users may no longer be able to resolve to it by server name.

  10. #10

    Re: apache name

    You're totally right. THanks again.

Similar Threads

  1. Apache CGI
    By shebang in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 09-26-2004, 06:32 PM
  2. IE and apache
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 07-16-2003, 07:07 PM
  3. apache+ssl
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 03-27-2003, 01:25 PM
  4. Apache and IIS?
    By trieder in forum Windows - General Topics
    Replies: 4
    Last Post: 02-05-2003, 02:27 PM
  5. PHP and apache 2x
    By Blaqb0x in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 11-29-2002, 05:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •