What Are You Doing Right Now
-
Quick question
On CentOS7 and apache how do I redirect http://IP to http://IP/helpdesk ??
-
@hobbit666 said in What Are You Doing Right Now:
Quick question
On CentOS7 and apache how do I redirect http://IP to http://IP/helpdesk ??
Well you most easily do it with an .htaccess file.
But the REAL question should be... why would you ever want to do this? I can't think of any scenario where this would be desirable. Step back.... what is the actual goal? I'm sure I know what's wrong, but I'm seeing if you can figure it out.
-
I'm guessing the goal is to test.
-
@Dashrender said in What Are You Doing Right Now:
I'm guessing the goal is to test.
THen that isn't testing anything, so don't do it. Problem solved.
-
@scottalanmiller said in What Are You Doing Right Now:
... why would you ever want to do this?
Because it works? Because it has no inherent security issues that I am aware of?
It could just as easily be done with an index.html and <meta> tag...
-
Because I have an CentOS VM with apache installed.
Then I have my "sub" sites like helpdesk screenconnect snipeit
e.g.
/var/www/html/helpdesk
/var/www/html/screenconnect
/var/www/html/snipitBut when I go to http://IP I get the Apache test page. I want it to default that when http://ip is entered I get the helpdesk site
-
Or should I be changing the default document thingy In the httpd.conf?
-
@dafyre said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
... why would you ever want to do this?
Because it works? Because it has no inherent security issues that I am aware of?
It could just as easily be done with an index.html and <meta> tag...
No matter how easy it is to do... what actual situation exists where you would ever want a default landing IP address to change the URL to a directory? There is something wrong, that's not a goal someone would want. LIke "How do I make this less effective" is not realistically ever an actual goal.
It's easy to do loads of impractical things. We don't do them just because we can.
That there is no security problem doesn't matter, there is no benefit is the issue.
-
@hobbit666 said in What Are You Doing Right Now:
Because I have an CentOS VM with apache installed.
Then I have my "sub" sites like helpdesk screenconnect snipeit
e.g.
/var/www/html/helpdesk
/var/www/html/screenconnect
/var/www/html/snipitBut when I go to http://IP I get the Apache test page. I want it to default that when http://ip is entered I get the helpdesk site
That's normal. So you want helpdesk to be the default, you don't want a redirect to it.
-
@hobbit666 said in What Are You Doing Right Now:
Or should I be changing the default document thingy In the httpd.conf?
Exactly.
-
@scottalanmiller yeah kind of answered myself while I was typing away lol
-
@scottalanmiller Done and working lol
-
@hobbit666 said in What Are You Doing Right Now:
@scottalanmiller Done and working lol
Now check and make sure all of your other subdirectories still work.
-
@dafyre said in What Are You Doing Right Now:
@hobbit666 said in What Are You Doing Right Now:
@scottalanmiller Done and working lol
Now check and make sure all of your other subdirectories still work.
done and still working
-
@hobbit666 said in What Are You Doing Right Now:
@scottalanmiller yeah kind of answered myself while I was typing away lol
That's why I asked the question that way. Leading you to the answer. Sometimes figuring out the wording is all that it takes.
-
Did anyone else notice that Andy of SW fame is a police officer now?
-
@scottalanmiller said in What Are You Doing Right Now:
Did anyone else notice that Andy of SW fame is a police officer now?
Huh? What makes you think that?
-
@NerdyDad said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
Did anyone else notice that Andy of SW fame is a police officer now?
Huh? What makes you think that?
Other than he said he was working as one and he has been posting pictures all morning of the work he's been doing as a cop?
-
@NerdyDad said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
Did anyone else notice that Andy of SW fame is a police officer now?
Huh? What makes you think that?
I remember years ago he posted that he was cleaning up his feeds and removing some posts, etc....
Just said it was for a job and that is all he could say. -
@Texkonc said in What Are You Doing Right Now:
@NerdyDad said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
Did anyone else notice that Andy of SW fame is a police officer now?
Huh? What makes you think that?
I remember years ago he posted that he was cleaning up his feeds and removing some posts, etc....
Just said it was for a job and that is all he could say.Oh, I never noticed that. Yeah, he's at least part time as a constable now.