Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been giving SSH access to a server. All is fine, I can log in and do my work...

But I was not given a domain, so how can I view said work in a browser?

My files are located in:

/home/username/public_html/index.html

Visting the IP in the web browser get's me to a empty page.

Visiting IP/username/index.html results in 'Not found.'

share|improve this question

closed as not a real question by jscott, squillman, Iain, coredump, Scott Pack Mar 25 '11 at 19:28

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Did you try the IP? –  Chris S Mar 25 '11 at 17:09

2 Answers 2

up vote 1 down vote accepted

Since we're just blindly guessing, I'm going to go with

http://ip.add.re.ss/~username/index.html
http://hostname/~username/index.html

that's pretty standard for user directory pages, but ultimately you're best off asking the system administrator since this kind of thing is highly configurable. For all we know, your home directory could be exported via NFS to some other server entirely, where it's mapped to something like

http://somesite.com/OurUsersSites/u/s/username/public_html/index.html
share|improve this answer
    
Success!!! Who would've thought, a tilde! It would've been nice if the sysadmin had left that info :) –  speg Mar 25 '11 at 17:28

Have you tried hostname -f to find the server's fully qualified domain name?

To give you much more of an answer, we will need to know exactly what kind of work that you are doing. For example, if your work involved publishing a web page with Apache, then the VirtualHosts directives in the config files in /etc/apache or /etc/apache2 are your best bet. There are many other answers for many other examples.

share|improve this answer
    
Yes and that gets to a sparse looking empty page. Trying to follow the directory path from there results in 'The requested URL was not found on this server.' messages. –  speg Mar 25 '11 at 17:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.