Configuration without client domains

Discussion in 'Installation/Configuration' started by David Almeida, Sep 12, 2018.

  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The name service and wild card dns is already workin OK, so do not touch it. Trust your collegue who has done it already.
    It is iirrelevant what file browser shows in your web server.
    It is neither server. The dns wildcard is in the name server zone.
    Looks to me the only problem here is that a12345.webserver.gustaveeiffel.pt goes to cgi-bin directory. Did you create the website with defaulf values or have you altered settings or modified vhost file?
     
    David Almeida likes this.
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Create a different index.html file in each website you have in the /web directory, so you know which site you have arrived at.
     
    David Almeida likes this.
  3. David Almeida

    David Almeida New Member

    Hi again @Taleman
    I create the site with default values and I have not altered any settings or values.
    I also create another site called "teste" with "teste.webserver.gustaveeiffel.pt" and if you try you'll see that it will go to same folder. The date of that "cgi-bin" folder is even the same.
    if you try "xpto.webserver.gustaveeiffel.pt" (I didn't create any website with this name) you'll see the same result. I can't figured out which folder is being showed, but it seems to me that is always the same no matter what you put before " .webserver.gustaveeiffel.pt".

    Both /web directories (for a12345 and teste) have the default index.html created by ISPConfig. I even edited index.html (of a12345), but never saw that page on the browser.... can't reach it.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Url that matches a website should go to that website. Other URL goes to the default website.
    Read the server access log to see what happens. Read website /log dir contents.
     
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Post the output of 'apachectl -S'.
     
    David Almeida likes this.
  6. David Almeida

    David Almeida New Member

    Hi Jesse
    I could not use apachectl. It says
    "The command could not be located because '/usr/bin' is not included in the PATH environment variable.
    This is most likely caused by the lack of administrative privileges associated with your user account"
    But I'm logged in with the user "root".

    Meanwhile, I think that I discovered the problem.
    From my computer, I pinged "webserver.gustaveeiffel.pt" and "www.gustaveeiffel.pt" and it gave the same IP adress despite they are on different servers.
    I pinged webhostge.ddns.net (that points to the students webserver) and it was a different IP from the previous two. I went to the webserver and open a webpage that gives the IP adress and was the same that "webhostge.ddns.net".
    so, on my home PC, I edited hosts file and add a12345.webserver.gustaveeiffel.pt with this last IP adress and it worked.

    So, I suspect that, or my collegue made an error when added the wildcard, or maybe this will not work with a ddns-like service.
     
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Sounds like DNS is pointing to the wrong IP, so get that updated and you should be set. Probably they could just create a CNAME record pointing to webhostge.ddns.net (although whether they can create a CNAME for the wildcard record depends on if their DNS server supports that or not).
     
  8. David Almeida

    David Almeida New Member

    Hi

    Finally our server is working the way I wanted.
    Thank you all, specially to @till, @Taleman and @Jesse Norell. Thanks for your patience with my doubts. :)

    But now, I am customizing the default landing pages and have new doubts.
    I already find out that the files are in folder /usr/local/ispconfig/server/conf/index
    My first doubt is the difference between "standard_index.html_en" and "user_standard_index.html_en"
    My second doubt is the tag <!--ADDRESS//--> present in these files. Is this just an advise to put a link?
    Third doubt: in the file "user_standard_index.html_en" there is a kind of template variable named {USER_USERNAME}. I tried to put this "variable" at file "standard_index.html_en" but it didn't convert the string to a username, as I expected that did. What am I doing wrong?
    Forth doubt: are there another "variables" that I could use, like "name", "site name", etc?

    Thanks
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Won't those files get overwritten every time ISPConfig gets updated? I think if you want to modify ISPConfig setup files, you have to do the modifications in /usr/local/ispconfig/server/conf-custom.
    I did not know there was "user_standard_index.html_en". Looking at its contents, it seems it is possible to create users in a website, and those users have their own /web directory. I did not know this either.
    Are you trying to do something overly complex? I have used ISPConfig six years now, and have never needed to think about those things.
     
    David Almeida likes this.
  10. David Almeida

    David Almeida New Member

    Yes, I know that. I was just seeing if it works. I will do next modifications in conf_custom :)
    I think not. As I said before, I'm working at a school. And I want to customize all students default page to have a personnal message to instruct students on how to work with something that is new to them.
    I just thought that exists something like that kind of "variables" that we usually see on a template.
     

Share This Page